v3.24.1.1.u2
Label Element Value
Risk Return Abstract rr_RiskReturnAbstract  
Registrant Name dei_EntityRegistrantName Goldman Sachs Trust
Prospectus Date rr_ProspectusDate Apr. 29, 2024
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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 Commodity Strategy 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 Commodity Strategy Fund (the “Fund”) seeks long-term total return.
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.You may qualify for sales charge discounts on purchases of Class A Shares if you invest at least $100,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 53 and in Appendix C—Additional Information About Sales Charge Variations, Waivers and Discounts on page 104 of the Prospectus and “Other Information Regarding Maximum Sales Charge, Purchases, Redemptions, Exchanges and Dividends” beginning on page B-176 of the Fund’s Statement of Additional Information (“SAI”).
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption <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 [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="color:#000000;font-family:Times New Roman;font-size:7.5pt;font-style:italic;">April 29, 2025</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 December 31, 2023 was 0% of the average value of its portfolio. However, the Fund’s portfolio turnover rate is calculated without regard to transactions involving certain short-term instruments or derivatives. If such transactions were included in the calculation, the Fund would have a higher portfolio turnover rate.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate none
Expenses Deferred Charges [Text Block] rr_ExpensesDeferredChargesTextBlock A contingent deferred sales charge (“CDSC”) of 1.00% is imposed on Class C Shares redeemed within 12 months of purchase.
Expense Breakpoint Discounts [Text] rr_ExpenseBreakpointDiscounts <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">You may qualify for sales charge discounts on purchases of Class A Shares if you invest at least $</span><span style="color:#000000;font-family:Times New Roman;font-size:9pt;">100,000</span><span style="color:#000000;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 53 and in Appendix C—Additional Information About Sales Charge Variations, Waivers and Discounts on page 104 of the Prospectus and “Other Information Regarding Maximum Sales Charge, Purchases, Redemptions, Exchanges and Dividends” beginning on page B-176 of the Fund’s Statement of Additional Information (“SAI”).</span>
Expense Breakpoint, Minimum Investment Required [Amount] rr_ExpenseBreakpointMinimumInvestmentRequiredAmount $ 100,000
Expenses Not Correlated to Ratio Due to Acquired Fund Fees [Text] rr_ExpensesNotCorrelatedToRatioDueToAcquiredFundFees <span style="color:#000000;font-family:Times New Roman;font-size:7.5pt;font-style:italic;">The “Total Annual Fund Operating Expenses” 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 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 the fee waiver and 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 seeks to maintain substantial economic exposure to the performance of the commodities markets. The Fund primarily gains exposure to the commodities markets by investing in a wholly-owned subsidiary of the Fund organized as a company under the laws of the Cayman Islands, Cayman Commodity – CSF, Ltd. (the “CSF Subsidiary”). The CSF Subsidiary is advised by the Investment Adviser, and has the same investment objective as the Fund. CoreCommodity Management, LLC (the “Sub-Adviser” or “CoreCommodity”) serves as sub-adviser to both the Fund and the CSF Subsidiary.The Fund seeks to provide exposure to the commodities markets by investing, through the CSF Subsidiary, in commodity-linked investments including, without limitation, commodity swaps, commodity futures contracts, exchange-listed commodity forward contracts, options on commodity futures, and commodity-linked notes. In pursuing its objective, the Fund attempts to provide long and/or short exposure to the returns of real assets that trade in the commodity markets without direct investment in physical commodities. The Fund uses the Bloomberg Commodity Index Total Return (“BCOM”) as its performance benchmark, but the Fund is actively managed and will not attempt to replicate the index.Investment in the Subsidiary. The Fund may invest up to 25% of its total assets in the CSF Subsidiary. The CSF Subsidiary primarily obtains its commodity exposure by investing in commodity-linked derivative instruments (which typically includes total return swaps). Commodity-linked swaps are derivative instruments whereby the cash flows agreed upon between counterparties are dependent upon the price of the underlying commodity or commodity index (or a component of the underlying commodity index) over the life of the swap. The value of the swap will rise and fall in response to changes in the underlying commodity or commodity index (or component of the underlying commodity index). Commodity-linked swaps expose the CSF Subsidiary and the Fund economically to movements in commodity prices. Such instruments may be leveraged so that small changes in the underlying commodity prices would result in disproportionate changes in the value of the instrument. Neither the Fund nor the CSF Subsidiary invests directly in physical commodities. The CSF Subsidiary will also invest in other instruments, including fixed income securities, either as investments or to serve as margin or collateral for its swap positions.The Sub-Adviser will take various factors into account when seeking commodity market exposure, such as, without limitation, the results of proprietary models developed by the Sub-Adviser, relative price differentials for various commodity futures for current delivery as compared to those for future delivery, and market conditions. Among other strategies, the Fund employs commodity roll-timing strategies. “Rolling” futures exposure is the process by which the holder of a particular futures contract or other instrument providing futures exposure (e.g. swaps) will sell such contract or instrument on or before the expiration date and simultaneously purchase a new contract or instrument with identical terms except for a later expiration date. This process allows a holder of the instrument to extend its current position through the original instrument’s expiration without delivering the underlying asset. The Fund’s rolling may differ from that of the BCOM to the extent necessary to enable the Fund to seek excess returns over the BCOM. The Fund’s “roll-timing” strategies may include, for example, rolling the Fund’s commodity exposure earlier or later versus the BCOM, or holding and rolling positions with longer or different expiration dates than the BCOM. The Fund also may underweight or overweight various commodities as compared to the BCOM, and may utilize commodities that are not components of the BCOM.Fixed Income Investments. As a result of the Fund’s use of derivatives, the Fund may hold as collateral significant amounts of U.S. Treasury or short-term investments, including money market funds. In managing the collateral portion of the Fund’s investment strategy, the Sub-Adviser generally seeks capital preservation. The average duration will vary. The Sub-Adviser uses derivatives, including futures and swaps, to manage the duration of the Fund’s investment portfolio.Other. The Fund may also invest in forwards, futures, and swaps, which are used for both hedging and non-hedging purposes. The Fund may invest up to 35% of its net assets in foreign securities.The Fund’s benchmark index is the BCOM.
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 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 broad-based securities market index. Through January 22, 2021, the Fund had been managed by GSAM. Performance information set forth below prior to the close of business on January 22, 2021, does not reflect the transition of day-to-day portfolio management from GSAM to CoreCommodity. 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 www.gsamfunds.com/performance 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 Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns <span style="color:#000000;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 broad-based securities market index.</span>
Performance Availability Website Address [Text] rr_PerformanceAvailabilityWebSiteAddress <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">www.gsamfunds.com/performance</span>
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">The Fund’s past </span><span style="color:#000000;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>
Bar Chart [Heading] rr_BarChartHeading <span style="color:#000000;font-family:Arial;font-size:9pt;font-weight:bold;margin-left:113pt;">CALENDAR YEAR </span><span style="color:#000000;font-family:Arial;font-size:9pt;">(INSTITUTIONAL)</span>
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock During the periods shown in the chart above:ReturnsQuarter endedBest Quarter Return26.99%March 31, 2022Worst Quarter Return-41.54%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="color:#000000;font-family:Arial Narrow;font-size:6.5pt;font-weight:bold;margin-left:0.0pt;">For the period ended December 31, 2023</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 </span><span style="color:#000000;font-family:Times New Roman;font-size:9pt;">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 </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] rr_PerformanceTableOneClassOfAfterTaxShown <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>
Performance Table Narrative rr_PerformanceTableNarrativeTextBlock 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.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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 A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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 A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Absence of Regulation Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Absence of Regulation Risk. The Fund engages in over-the-counter (“OTC”) transactions, which trade in a dealer network, rather than on an exchange. In general, there is less governmental regulation and supervision of transactions in the OTC markets than of transactions entered into on organized exchanges.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Commodity Sector Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Commodity Sector Risk. Exposure to the commodities markets may subject the Fund to greater volatility than investments in more traditional securities. The value of commodity-linked investments may be affected by changes in overall market movements, commodity index volatility, changes in interest rates, or factors affecting a particular industry or commodity, such as drought, floods, weather, livestock disease, embargoes, tariffs and international economic, business, political and regulatory developments. The prices of energy, industrial metals, precious metals, agriculture and livestock sector commodities may fluctuate widely due to factors such as changes in value, supply and demand and governmental regulatory policies. The commodity-linked investments in which the CSF Subsidiary enters into may involve counterparties in the financial services sector, and events affecting the financial services sector may cause the CSF Subsidiary's, and therefore the Fund’s, share value to fluctuate.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Counterparty Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Counterparty Risk. Many of the protections afforded to cleared transactions, such as the security afforded by transacting through a clearing house, might not be available in connection with OTC transactions. Therefore, in those instances in which the Fund enters into uncleared OTC transactions, the Fund will be subject to the risk that its direct counterparty will not perform its obligations under the transactions and that the Fund will sustain losses.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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. Additionally, the credit quality of securities or instruments may deteriorate rapidly, which may impair the Fund's liquidity and 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 A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Derivatives Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Derivatives Risk. The Fund's use of  options, futures, forwards, 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 A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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 (including repatriation restrictions), 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 A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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 A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Leverage Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Leverage Risk. Borrowing and the use of derivatives may result in leverage and may make the Fund more volatile. The use of leverage may cause the Fund to liquidate portfolio positions to satisfy its obligations when it may not be advantageous to do so. The use of leverage by the Fund can substantially increase the adverse impact to which the Fund’s investment portfolio may be subject.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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. Liquidity risk may be the result of, among other things, the reduced number and capacity of traditional market participants to make a market in fixed income securities or the lack of an active market. The potential for liquidity risk may be magnified by a rising interest rate environment or other circumstances where investor redemptions from fixed income funds may be higher than normal, potentially causing increased supply in the market due to selling activity.  Redemptions by large shareholders may have a negative impact on the Fund’s liquidity.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy 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 or governments and/or general economic conditions throughout the world due to increasingly interconnected global economies and financial markets. Events such as war, military conflict, acts of terrorism, social unrest, natural disasters, recessions, inflation, rapid interest rate changes, supply chain disruptions, sanctions, the spread of infectious illness or other public health threats could also significantly impact the Fund and its investments.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Portfolio Turnover Rate Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Portfolio Turnover Rate Risk. A high rate of portfolio turnover involves correspondingly greater expenses which must be borne by the Fund and its shareholders, and is also likely to result in short-term capital gains taxable to shareholders.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Short Position Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Short Position Risk. The Fund may enter into a short position through a futures contract, an option or swap agreement or through short sales of any instrument that the Fund may purchase for investment. Taking short positions involves leverage of the Fund’s assets and presents various risks. If the value of the underlying instrument or market in which the Fund has taken a short position increases, then the Fund will incur a loss equal to the increase in value from the time that the short position was entered into plus any related interest payments or other fees. Taking short positions involves the risk that losses may be disproportionate, may exceed the amount invested and may be unlimited.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Subsidiary Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Subsidiary Risk. The CSF Subsidiary is not registered under the Investment Company Act of 1940, as amended (“Investment Company Act”) and is not subject to all the investor protections of the Investment Company Act. Changes in the laws of the United States and/or the Cayman Islands could result in the inability of the Fund and/or the CSF Subsidiary to operate as described in the Prospectus and the SAI and could adversely affect the Fund.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Swaps Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Swaps Risk. In a standard “swap” transaction, two parties agree to exchange the returns, differentials in rates of return or some other amount earned or realized on the “notional amount” of predetermined investments or instruments, which may be adjusted for an interest factor. Swaps can involve greater risks than direct investment in securities, because swaps may be leveraged and subject to counterparty risk (e.g., the risk of a counterparty’s defaulting on the obligation or bankruptcy), credit risk and pricing risk (i.e., swaps may be difficult to value). Swaps may also be considered illiquid. It may not be possible for the Fund or the CSF Subsidiary to liquidate a swap position at an advantageous time or price, which may result in significant losses.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Tax Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Tax Risk. Based on a private letter ruling from the Internal Revenue Service (“IRS”), the Fund seeks to gain exposure to the commodity markets through investments in the CSF Subsidiary.The tax treatment of the Fund’s investments in the CSF Subsidiary could affect whether income derived from such investments is “qualifying income” under Subchapter M of the Internal Revenue Code of 1986, as amended (the “Code”), or otherwise affect the character, timing and/or amount of the Fund’s taxable income or any gains and distributions made by the Fund. If the IRS were to successfully assert that a Fund’s income from such investments was not “qualifying income,” the Fund may fail to qualify as a regulated investment company (“RIC”) under Subchapter M of the Code if over 10% of its gross income was derived from these investments. If the Fund failed to qualify as a RIC, it would be subject to federal and state income tax on all of its taxable income at regular corporate tax rates with no deduction for any distributions paid to shareholders, which would significantly adversely affect the returns to, and could cause substantial losses for, Fund shareholders.Shareholders should review “Other Information” under “Taxation” on page 65 of the Prospectus for more information.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | US Government Securities Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock U.S. Government Securities Risk. The U.S. government may not provide financial support to U.S. government agencies, instrumentalities or sponsored enterprises if it is not obligated to do so by law. U.S. government securities issued by those agencies, instrumentalities and sponsored enterprises, including those issued by the Federal National Mortgage Association (“Fannie Mae”), Federal Home Loan Mortgage Corporation (“Freddie Mac”) and the Federal Home Loan Banks, are neither issued nor guaranteed by the U.S. Treasury and, therefore, are not backed by the full faith and credit of the United States. The maximum potential liability of the issuers of some U.S. government securities held by the Fund may greatly exceed their current resources, including any legal right to support from the U.S. Treasury. It is possible that issuers of U.S. government securities will not have the funds to meet their payment obligations in the future.
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Class A Shares  
Risk Return Abstract rr_RiskReturnAbstract  
Maximum Sales Charge (Load) Imposed on Purchases (as a percentage of offering price) rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice 4.50%
Maximum Deferred Sales Charge (Load) (as a percentage of the lower of original purchase price or sale proceeds) rr_MaximumDeferredSalesChargeOverOther none [1]
Management Fees rr_ManagementFeesOverAssets 0.50%
Distribution and/or Service (12b-1) Fees rr_DistributionAndService12b1FeesOverAssets 0.25%
Service Fees rr_Component1OtherExpensesOverAssets none
All Other Expenses rr_Component3OtherExpensesOverAssets 0.22%
Other Expenses rr_OtherExpensesOverAssets 0.22%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.14%
Total Annual Fund Operating Expenses rr_ExpensesOverAssets 1.11% [2]
Fee Waiver rr_FeeWaiverOrReimbursementOverAssets (0.16%) [3]
Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation rr_NetExpensesOverAssets 0.95%
1 Year rr_ExpenseExampleYear01 $ 543
3 Years rr_ExpenseExampleYear03 772
5 Years rr_ExpenseExampleYear05 1,019
10 Years rr_ExpenseExampleYear10 $ 1,727
1 Year rr_AverageAnnualReturnYear01 (14.02%)
5 Years rr_AverageAnnualReturnYear05 3.33%
10 Years rr_AverageAnnualReturnYear10 (5.94%)
Inception Date rr_AverageAnnualReturnInceptionDate Mar. 30, 2007
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Class C Shares  
Risk Return Abstract rr_RiskReturnAbstract  
Maximum Sales Charge (Load) Imposed on Purchases (as a percentage of offering price) rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice none
Maximum Deferred Sales Charge (Load) (as a percentage of the lower of original purchase price or sale proceeds) rr_MaximumDeferredSalesChargeOverOther 1.00% [1]
Management Fees rr_ManagementFeesOverAssets 0.50%
Distribution and/or Service (12b-1) Fees rr_DistributionAndService12b1FeesOverAssets 0.75%
Service Fees rr_Component1OtherExpensesOverAssets 0.25%
All Other Expenses rr_Component3OtherExpensesOverAssets 0.22%
Other Expenses rr_OtherExpensesOverAssets 0.47%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.14%
Total Annual Fund Operating Expenses rr_ExpensesOverAssets 1.86% [2]
Fee Waiver rr_FeeWaiverOrReimbursementOverAssets (0.16%) [3]
Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation rr_NetExpensesOverAssets 1.70%
1 Year rr_ExpenseExampleYear01 $ 273
3 Years rr_ExpenseExampleYear03 569
5 Years rr_ExpenseExampleYear05 991
10 Years rr_ExpenseExampleYear10 $ 2,167
Expense Example, No Redemption, By Year, Caption [Text] rr_ExpenseExampleNoRedemptionByYearCaption <span style="color:#000000;font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Class C Shares – Assuming no redemption</span>
1 Year rr_ExpenseExampleNoRedemptionYear01 $ 173
3 Years rr_ExpenseExampleNoRedemptionYear03 569
5 Years rr_ExpenseExampleNoRedemptionYear05 991
10 Years rr_ExpenseExampleNoRedemptionYear10 $ 2,167
1 Year rr_AverageAnnualReturnYear01 (11.47%)
5 Years rr_AverageAnnualReturnYear05 3.54%
10 Years rr_AverageAnnualReturnYear10 (6.18%) [4]
Inception Date rr_AverageAnnualReturnInceptionDate Mar. 30, 2007
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Institutional Shares  
Risk Return Abstract rr_RiskReturnAbstract  
Maximum Sales Charge (Load) Imposed on Purchases (as a percentage of offering price) rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice none
Maximum Deferred Sales Charge (Load) (as a percentage of the lower of original purchase price or sale proceeds) rr_MaximumDeferredSalesChargeOverOther none [1]
Management Fees rr_ManagementFeesOverAssets 0.50%
Distribution and/or Service (12b-1) Fees rr_DistributionAndService12b1FeesOverAssets none
Service Fees rr_Component1OtherExpensesOverAssets none
All Other Expenses rr_Component3OtherExpensesOverAssets 0.14%
Other Expenses rr_OtherExpensesOverAssets 0.14%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.14%
Total Annual Fund Operating Expenses rr_ExpensesOverAssets 0.78% [2]
Fee Waiver rr_FeeWaiverOrReimbursementOverAssets (0.16%) [3]
Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation rr_NetExpensesOverAssets 0.62%
1 Year rr_ExpenseExampleYear01 $ 63
3 Years rr_ExpenseExampleYear03 233
5 Years rr_ExpenseExampleYear05 418
10 Years rr_ExpenseExampleYear10 $ 951
2014 rr_AnnualReturn2014 (30.62%)
2015 rr_AnnualReturn2015 (32.38%)
2016 rr_AnnualReturn2016 12.32%
2017 rr_AnnualReturn2017 4.28%
2018 rr_AnnualReturn2018 (14.89%)
2019 rr_AnnualReturn2019 16.77%
2020 rr_AnnualReturn2020 (22.96%)
2021 rr_AnnualReturn2021 33.52%
2022 rr_AnnualReturn2022 15.75%
2023 rr_AnnualReturn2023 (9.65%)
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 Mar. 31, 2022
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 26.99%
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 (41.54%)
1 Year rr_AverageAnnualReturnYear01 (9.65%)
5 Years rr_AverageAnnualReturnYear05 4.65%
10 Years rr_AverageAnnualReturnYear10 (5.18%)
Inception Date rr_AverageAnnualReturnInceptionDate Mar. 30, 2007
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Investor Shares  
Risk Return Abstract rr_RiskReturnAbstract  
Maximum Sales Charge (Load) Imposed on Purchases (as a percentage of offering price) rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice none
Maximum Deferred Sales Charge (Load) (as a percentage of the lower of original purchase price or sale proceeds) rr_MaximumDeferredSalesChargeOverOther none [1]
Management Fees rr_ManagementFeesOverAssets 0.50%
Distribution and/or Service (12b-1) Fees rr_DistributionAndService12b1FeesOverAssets none
Service Fees rr_Component1OtherExpensesOverAssets none
All Other Expenses rr_Component3OtherExpensesOverAssets 0.22%
Other Expenses rr_OtherExpensesOverAssets 0.22%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.14%
Total Annual Fund Operating Expenses rr_ExpensesOverAssets 0.86% [2]
Fee Waiver rr_FeeWaiverOrReimbursementOverAssets (0.16%) [3]
Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation rr_NetExpensesOverAssets 0.70%
1 Year rr_ExpenseExampleYear01 $ 72
3 Years rr_ExpenseExampleYear03 258
5 Years rr_ExpenseExampleYear05 461
10 Years rr_ExpenseExampleYear10 $ 1,046
1 Year rr_AverageAnnualReturnYear01 (9.78%)
5 Years rr_AverageAnnualReturnYear05 4.58%
10 Years rr_AverageAnnualReturnYear10 (5.24%)
Inception Date rr_AverageAnnualReturnInceptionDate Nov. 30, 2007
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Class R Shares  
Risk Return Abstract rr_RiskReturnAbstract  
Maximum Sales Charge (Load) Imposed on Purchases (as a percentage of offering price) rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice none
Maximum Deferred Sales Charge (Load) (as a percentage of the lower of original purchase price or sale proceeds) rr_MaximumDeferredSalesChargeOverOther none [1]
Management Fees rr_ManagementFeesOverAssets 0.50%
Distribution and/or Service (12b-1) Fees rr_DistributionAndService12b1FeesOverAssets 0.50%
Service Fees rr_Component1OtherExpensesOverAssets none
All Other Expenses rr_Component3OtherExpensesOverAssets 0.22%
Other Expenses rr_OtherExpensesOverAssets 0.22%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.14%
Total Annual Fund Operating Expenses rr_ExpensesOverAssets 1.36% [2]
Fee Waiver rr_FeeWaiverOrReimbursementOverAssets (0.16%) [3]
Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation rr_NetExpensesOverAssets 1.20%
1 Year rr_ExpenseExampleYear01 $ 122
3 Years rr_ExpenseExampleYear03 415
5 Years rr_ExpenseExampleYear05 729
10 Years rr_ExpenseExampleYear10 $ 1,621
1 Year rr_AverageAnnualReturnYear01 (10.19%)
5 Years rr_AverageAnnualReturnYear05 4.05%
10 Years rr_AverageAnnualReturnYear10 (5.76%)
Inception Date rr_AverageAnnualReturnInceptionDate Nov. 30, 2007
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Class R6 Shares  
Risk Return Abstract rr_RiskReturnAbstract  
Maximum Sales Charge (Load) Imposed on Purchases (as a percentage of offering price) rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice none
Maximum Deferred Sales Charge (Load) (as a percentage of the lower of original purchase price or sale proceeds) rr_MaximumDeferredSalesChargeOverOther none [1]
Management Fees rr_ManagementFeesOverAssets 0.50%
Distribution and/or Service (12b-1) Fees rr_DistributionAndService12b1FeesOverAssets none
Service Fees rr_Component1OtherExpensesOverAssets none
All Other Expenses rr_Component3OtherExpensesOverAssets 0.13%
Other Expenses rr_OtherExpensesOverAssets 0.13%
Acquired Fund Fees and Expenses rr_AcquiredFundFeesAndExpensesOverAssets 0.14%
Total Annual Fund Operating Expenses rr_ExpensesOverAssets 0.77% [2]
Fee Waiver rr_FeeWaiverOrReimbursementOverAssets (0.16%) [3]
Total Annual Fund Operating Expenses After Fee Waiver and Expense Limitation rr_NetExpensesOverAssets 0.61%
1 Year rr_ExpenseExampleYear01 $ 62
3 Years rr_ExpenseExampleYear03 230
5 Years rr_ExpenseExampleYear05 412
10 Years rr_ExpenseExampleYear10 $ 939
1 Year rr_AverageAnnualReturnYear01 (9.71%)
5 Years rr_AverageAnnualReturnYear05 4.67%
10 Years rr_AverageAnnualReturnYear10 (5.18%) [5]
Inception Date rr_AverageAnnualReturnInceptionDate Jul. 31, 2015
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Return After Taxes on Distributions | Class A Shares  
Risk Return Abstract rr_RiskReturnAbstract  
1 Year rr_AverageAnnualReturnYear01 (15.34%)
5 Years rr_AverageAnnualReturnYear05 0.85%
10 Years rr_AverageAnnualReturnYear10 (7.31%)
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | Return After Taxes on Distributions and Sale of Fund Shares | Class A Shares  
Risk Return Abstract rr_RiskReturnAbstract  
1 Year rr_AverageAnnualReturnYear01 (8.30%)
5 Years rr_AverageAnnualReturnYear05 1.52%
10 Years rr_AverageAnnualReturnYear10 (4.68%)
Class A C Inst Inv R R6 Shares | Goldman Sachs Commodity Strategy Fund | BCOM (Gross, USD, Unhedged)  
Risk Return Abstract rr_RiskReturnAbstract  
1 Year rr_AverageAnnualReturnYear01 (7.91%)
5 Years rr_AverageAnnualReturnYear05 7.23%
10 Years rr_AverageAnnualReturnYear10 (1.11%)
[1] A contingent deferred sales charge (“CDSC”) of 1.00% is imposed on Class C Shares redeemed within 12 months of purchase.
[2] The “Total Annual Fund Operating Expenses” 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.”
[3] 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 the affiliated funds in which the Fund invests; and (ii) waive a portion of its management fee in an amount equal to the management fee paid to the Investment Adviser by the CSF Subsidiary (as defined below) at an annual rate of 0.42% of the CSF Subsidiary’s average daily net assets. The management fee waiver arrangement with respect to the CSF Subsidiary may not be discontinued by the Investment Adviser as long as its contract with the CSF Subsidiary is in place. The other management fee waiver arrangements will remain in effect through at least April 29, 2025, and prior to such date the Investment Adviser may not terminate the arrangements without the approval of the Board of Trustees.
[4] Class C Shares automatically convert into Class A Shares eight years after the purchase date. The 10-Year performance for Class C Shares does not reflect the conversion to Class A Shares after the first eight years of performance.
[5] Class R6 Shares commenced operations on July 31, 2015. Prior to that date, the performance of Class R6 Shares shown in the table above is that of Institutional Shares. Performance has not been adjusted to reflect the lower expenses of Class R6 Shares. Class R6 Shares would have had higher returns because: (i) Institutional Shares and Class R6 Shares represent interests in the same portfolio of securities; and (ii) Class R6 Shares have lower expenses.