| Label | Element | Value |
|---|---|---|
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Registrant Name | dei_EntityRegistrantName | GOLDMAN SACHS TRUST |
| Prospectus Date | rr_ProspectusDate | Mar. 30, 2025 |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Risk/Return [Heading] | rr_RiskReturnHeading | <span style="font-family:Times New Roman;font-size:12pt;font-weight:bold;">Goldman</span><span style="font-family:Times New Roman;font-size:12pt;font-weight:bold;line-height:14pt;"> </span><span style="font-family:Times New Roman;font-size:12pt;font-weight:bold;">Sachs Financial Square Treasury Solutions 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 Financial Square Treasury Solutions Fund (the “Fund”) seeks to maximize current income to the extent consistent with the preservation of capital and the maintenance of liquidity by investing exclusively in high quality money market instruments. |
| 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. |
| 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> |
| 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 Institutional Shares of the Fund for the time periods indicated and then redeem all of your Institutional 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 pursues its investment objective by investing only in U.S. Treasury Obligations, which include securities issued or guaran- teed by the U.S. Treasury where the payment of principal and interest is backed by the full faith and credit of the U.S. government (“U.S. Treasury Obligations”), and repurchase agreements with the Federal Reserve Bank of New York collateralized by U.S. Treasury Obligations. The Fund intends to be a “government money market fund,” as such term is defined in or interpreted under Rule 2a-7 under the Investment Company Act of 1940, as amended (“Investment Company Act”). “Government money market funds” are money market funds that invest at least 99.5% of their total assets in cash, securities issued or guaranteed by the United States or certain U.S. government agencies or instrumentalities (“U.S. Government Securities”), and/or repurchase agreements that are collateralized fully by cash or U.S. Government Securities. “Government money market funds” are exempt from requirements that permit and, under certain circumstances, require money market funds to impose a “liquidity fee” on redemptions. As a “government money market fund,” the Fund values its securities using the amortized cost method. The Fund seeks to maintain a stable net asset value (“NAV”) of $1.00 per share. Under Rule 2a-7, the Fund may invest only in U.S. dollar-denominated securities that meet certain risk-limiting conditions relating to portfolio quality, maturity and liquidity. |
| 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) the average annual total returns of the Fund’s Institutional Shares.The Fund’s past performance is not necessarily an indication of how the Fund will perform in the future. Performance reflects fee waivers and/or expense limitations in effect during the periods shown. Updated performance information is available at no cost at am.gs.comor by calling 1-800-621-2550. |
| 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 Institutional Shares from year to year; and (b) the average annual total returns of the Fund’s Institutional Shares.</span> |
| Performance Availability Phone [Text] | rr_PerformanceAvailabilityPhone | <span style="font-family:Times New Roman;font-size:9pt;">1-800-621-2550</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 is not necessarily an indication of how the Fund will 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</span> |
| Bar Chart Closing [Text Block] | rr_BarChartClosingTextBlock | During the periods shown in the chart above:ReturnsQuarter endedBest Quarter Return1.33%December 31, 2023Worst Quarter Return0.00%September 30, 2021 |
| 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> |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | Risk Lose Money [Member] | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Risk [Text Block] | rr_RiskTextBlock | You could lose money by investing in the Fund. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | Risk Money Market Fund May Not Preserve Dollar [Member] | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Risk [Text Block] | rr_RiskTextBlock | Although the Fund seeks to preserve the value of your investment at $1.00 per share, it cannot guarantee it will do so. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | Risk Money Market Fund Sponsor May Not Provide Support [Member] | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Risk [Text Block] | rr_RiskTextBlock | The Fund’s sponsor is not required to reimburse the Fund for losses, and you should not expect that the sponsor will provide financial support to the Fund at any time, including during periods of market stress. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions 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 account or a deposit of a bank and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | Credit Default Risk [Member] | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Risk [Text Block] | rr_RiskTextBlock | Credit/Default Risk. An issuer or guarantor of a security held by the Fund, or a bank or other financial institution that has entered into a repurchase agreement with the Fund, may default on its obligation to pay interest and repay principal or default on any other obligation. Additionally, the credit quality of securities and counterparties may deteriorate rapidly, which may impair the Fund’s liquidity and cause significant deterioration in NAV. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | Interest Rate Risk [Member] | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Risk [Text Block] | rr_RiskTextBlock | Interest Rate Risk. When interest rates increase, the Fund’s yield will tend to be lower than prevailing market rates, and the market value of its investments will generally decline. The Fund may face a heightened level of interest rate risk in connection with the type and extent of certain monetary policy changes made by the Federal Reserve, such as target interest rate changes. Changing interest rates may have unpredictable effects on the markets, may result in heightened market volatility and may detract from Fund performance. A low interest rate environment poses additional risks to the Fund, because low yields on the Fund’s portfolio holdings may have an adverse impact on the Fund’s ability to provide a positive yield to its shareholders, pay expenses out of current income, or, at times, maintain a stable $1.00 share price and/or achieve its investment objective. Fluctuations in interest rates may also affect the liquidity of the Fund’s investments. A sudden or unpredictable increase in interest rates may cause volatility in the market and may decrease the liquidity of the Fund's investments, which would make it harder for the Fund to sell its investments at an advantageous time. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions 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. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions 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. The liquidity of portfolio securities can deteriorate rapidly due to credit events affecting issuers or guarantors, such as a credit rating downgrade, or due to general market conditions or a lack of willing buyers. An inability to sell one or more portfolio positions, or selling such positions at an unfavorable time and/or under unfavorable conditions, can adversely affect the Fund’s ability to maintain a stable $1.00 share price. 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. 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 money market and other fixed income mutual funds may be higher than normal, potentially causing increased supply in the market due to selling activity. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions 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 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. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | Stable NAV Risk [Member] | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Risk [Text Block] | rr_RiskTextBlock | Stable NAV Risk. The Fund may not be able to maintain a stable $1.00 share price at all times. If any money market fund that intends to maintain a stable NAV fails to do so (or if there is a perceived threat of such a failure), other such money market funds, including the Fund, could be subject to increased redemption activity, which could adversely affect the Fund’s NAV. Shareholders of the Fund should not rely on or expect the Investment Adviser or an affiliate to purchase distressed assets from the Fund, make capital infusions into the Fund, enter into capital support agreements with the Fund or take other actions to help the Fund maintain a stable $1.00 share price. |
| Institutional Shares | Goldman Sachs Financial Square Treasury Solutions Fund | Institutional Shares | ||
| Risk Return Abstract | rr_RiskReturnAbstract | |
| Maximum Sales Charge (Load) Imposed on Purchases | rr_MaximumSalesChargeImposedOnPurchasesOverOfferingPrice | none |
| Maximum Deferred Sales Charge (Load) | rr_MaximumDeferredSalesChargeOverOther | none |
| Maximum Sales Charge (Load) Imposed on Reinvested Dividends | rr_MaximumSalesChargeOnReinvestedDividendsAndDistributionsOverOther | none |
| Redemption Fees | rr_RedemptionFeeOverRedemption | none |
| Exchange Fees | rr_ExchangeFeeOverRedemption | none |
| Management Fees | rr_ManagementFeesOverAssets | 0.18% |
| Other Expenses | rr_OtherExpensesOverAssets | 0.02% |
| Total Annual Fund Operating Expenses | rr_ExpensesOverAssets | 0.20% |
| 1 Year | rr_ExpenseExampleYear01 | $ 20 |
| 3 Years | rr_ExpenseExampleYear03 | 64 |
| 5 Years | rr_ExpenseExampleYear05 | 113 |
| 10 Years | rr_ExpenseExampleYear10 | $ 255 |
| 2015 | rr_AnnualReturn2015 | 0.01% |
| 2016 | rr_AnnualReturn2016 | 0.21% |
| 2017 | rr_AnnualReturn2017 | 0.73% |
| 2018 | rr_AnnualReturn2018 | 1.72% |
| 2019 | rr_AnnualReturn2019 | 2.07% |
| 2020 | rr_AnnualReturn2020 | 0.38% |
| 2021 | rr_AnnualReturn2021 | 0.01% |
| 2022 | rr_AnnualReturn2022 | 1.57% |
| 2023 | rr_AnnualReturn2023 | 5.03% |
| 2024 | rr_AnnualReturn2024 | 5.12% |
| Highest Quarterly Return, Label | rr_HighestQuarterlyReturnLabel | <span style="font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Best Quarter Return</span> |
| Highest Quarterly Return, Date | rr_BarChartHighestQuarterlyReturnDate | Dec. 31, 2023 |
| Highest Quarterly Return | rr_BarChartHighestQuarterlyReturn | 1.33% |
| Lowest Quarterly Return, Label | rr_LowestQuarterlyReturnLabel | <span style="font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Worst Quarter Return</span> |
| Lowest Quarterly Return, Date | rr_BarChartLowestQuarterlyReturnDate | Sep. 30, 2021 |
| Lowest Quarterly Return | rr_BarChartLowestQuarterlyReturn | none |
| 1 Year | rr_AverageAnnualReturnYear01 | 5.12% |
| 5 Years | rr_AverageAnnualReturnYear05 | 2.40% |
| 10 Years | rr_AverageAnnualReturnYear10 | 1.67% |
| Inception Date | rr_AverageAnnualReturnInceptionDate | Feb. 28, 1997 |