Goldman Sachs US Mortgages Fund Performance Management - Class A Inst Inv Separate Account Inst R6 Shares [Member] - Goldman Sachs US Mortgages Fund |
Mar. 31, 2026 |
|---|---|
| Prospectus [Line Items] | |
| Bar Chart and Performance Table [Heading] | <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:0.0pt;text-transform:uppercase;">Performance</span> |
| Performance Narrative [Text Block] | The bar chart and table below provide an indication of the risks of investing in the Fund by showing: (a) changes in the performance of the Fund’s Class A Shares from year to year; and (b) how the average annual total returns of the Fund’s Class A, Institutional, Service, Investor, Separate Account Institutional, Class R and Class R6 Shares compare to those of a regulatorily required broad-based securities market index (Bloomberg U.S. Aggregate Bond Index) (the “Regulatory Benchmark”) and the Bloomberg U.S. Securitized Bond Index (the “Performance Benchmark”).The Performance Benchmark is generally more representative of the market sectors and/ or types of investments in which the Fund invests or to which the Fund has exposure and which the Investment Adviser uses to measure the Fund's performance. The Fund has included in the table below the performance of the Regulatory Benchmark, which represents a broader measure of market performance, to comply with regulatory requirements. For additional information about these benchmark indices, please see “Additional Performance and Benchmark Information” on page 41 of the Prospectus. The Fund’s past performance, before and after taxes, is not necessarily an indication of how the Fund will perform in the future. Updated performance information is available at no cost at am.gs.com or by calling the appropriate phone number on the back cover of the Prospectus. The bar chart (including “Best Quarter” and “Worst Quarter” information) does not reflect the sales loads applicable to Class A Shares. If the sales loads were reflected, returns would be less. Performance reflects applicable fee waivers and/or expense limitations in effect during the periods shown. |
| Performance Past Does Not Indicate Future [Text] | <span style="font-family:Times New Roman;font-size:9pt;">The Fund’s past performance, </span><span style="font-family:Times New Roman;font-size:9pt;">before and after taxes, is not necessarily an indication of how the Fund will perform in the future.</span> |
| Performance Information Illustrates Variability of Returns [Text] | <span style="font-family:Times New Roman;font-size:9pt;">The bar chart and table below provide an indication of the risks of investing in the Fund by showing: (a) changes in the performance of the Fund’s Class A Shares from year to year; and (b) how the average annual total returns of the Fund’s Class A, Institutional, Service, Investor, Separate Account Institutional,</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;">Class R and Class R6 Shares compare to those of a regulatorily required broad-based securities market index (Bloomberg U.S. Aggregate Bond Index) (the “Regulatory Benchmark”) and the Bloomberg U.S. Securitized Bond Index (the “Performance Benchmark”).</span> |
| Performance One Year or Less [Text] | <span style="font-family:Times New Roman;font-size:7.5pt;font-style:italic;">Service Class Shares commenced operations on February 20, 2026. Because Service Class Shares have not had returns for a full calendar year as of the date of this Prospectus, the figures shown above provide performance for Investor Shares of the Fund. Performance has not been adjusted to reflect the higher expenses of Service Class Shares. Service Class Shares would have had lower returns because: (i) Investor Shares and Service Class Shares represent interests in the same portfolio of securities; and (ii) Service Class Shares have higher expenses.</span><span style="font-family:Times New Roman;font-size:7.5pt;font-style:italic;">Class R Shares commenced operations on February 20, 2026. Because Class R Shares have not had returns for a full calendar year as of the date of this Prospectus, the figures shown above provide performance for Investor Shares of the Fund. Performance has not been adjusted to reflect the higher expenses of Class R Shares. Class R Shares would have had lower returns because: (i) Investor Shares and Class R Shares represent interests in the same portfolio of securities; and (ii) Class R Shares have higher expenses.</span> |
| Performance Additional Market Index [Text] | <span style="font-family:Times New Roman;font-size:9pt;">The Performance Benchmark is generally more representative of the market sectors and/ </span><span style="font-family:Times New Roman;font-size:9pt;">or types of investments in which the Fund invests or to which the Fund has exposure and which the Investment Adviser uses to measure the Fund's performance. The Fund has included in the table below the performance of the Regulatory Benchmark, which represents a broader measure of market performance, to comply with regulatory requirements.</span> |
| Bar Chart Does Not Reflect Sales Loads [Text] | <span style="color:#000000;font-family:Times New Roman;font-size:9pt;">The bar chart (including “Best Quarter” and “Worst Quarter” information) does not reflect the sales loads applicable to Class A Shares. If the sales loads were reflected, returns would be less.</span> |
| Bar Chart, Reason Selected Class Different from Immediately Preceding Period [Text] | <span style="font-family:Times New Roman;font-size:7.5pt;font-style:italic;">*</span><span style="font-family:Times New Roman;font-size:7.5pt;font-style:italic;">Previously, the bar chart above showed the Fund’s annual returns for Class A Shares. Annual returns for Institutional Shares are used because Institutional Shares have more assets than any other share class.</span> |
| Bar Chart [Heading] | <span style="font-family:Arial;font-size:9pt;font-weight:bold;margin-left:24%;">CALENDAR YEAR </span><span style="font-family:Arial;font-size:9pt;">(INSTITUTIONAL*)</span> |
| Bar Chart Closing [Text Block] | ReturnsQuarter endedYear-to-Date Return0.94%June 30, 2026During the periods shown in the chart above:ReturnsQuarter endedBest Quarter Return7.42%December 31, 2023Worst Quarter Return-5.62%September 30, 2022 |
| Performance Table Heading | <span style="color:#FFFFFF;font-family:Arial;font-size:7.5pt;margin-left:6pt;text-transform:uppercase;">AVERAGE ANNUAL TOTAL RETURN</span><span style="font-family:Arial Narrow;font-size:6.5pt;font-weight:bold;margin-left:0.0pt;">For the period ended December 31, 2025</span> |
| Performance Table Narrative | Benchmark returns do not reflect any deductions for fees or expenses.The after-tax returns are for Class A Shares only. The after-tax returns for Institutional, Service, Investor, Separate Account Institutional, Class R and Class R6 Shares will vary.After-tax returns are calculated using the historical highest individual federal marginal income tax rates and do not reflect the impact of state and local taxes.Actual after-tax returns depend on an investor’s tax situation and may differ from those shown. In addition, the after-tax returns shown are not relevant to investors who hold Fund shares through tax-deferred arrangements such as 401(k) plans or individual retirement accounts. |
| Performance Table Uses Highest Federal Rate | <span style="font-family:Times New Roman;font-size:9pt;">After-tax returns are calculated using the historical highest individual federal marginal income tax rates and do not reflect the impact of state and local taxes.</span> |
| Performance Table Not Relevant to Tax Deferred | <span style="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 after-tax returns shown are not relevant to investors who hold Fund shares through tax-deferred arrangements such as 401(k) plans or individual retirement accounts.</span> |
| Performance Table One Class of after Tax Shown [Text] | <span style="font-family:Times New Roman;font-size:9pt;">The after-tax returns are for Class A Shares only. The after-tax returns for Institutional, Service, Investor, Separate Account Institutional,</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;">Class R and Class R6 Shares will vary.</span> |
| Index No Deduction for Fees, Expenses, or Taxes [Text] | <span style="color:#000000;font-family:Times New Roman;font-size:7.5pt;font-style:italic;">Benchmark returns do not reflect any deductions for fees or expenses.</span> |
| Performance Availability Website Address [Text] | <span style="font-family:Times New Roman;font-size:9pt;">am.gs.com</span> |
| Institutional Shares | |
| Prospectus [Line Items] | |
| Year to Date Return, Label [Optional Text] | <span style="font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Year-to-Date Return</span> |
| Bar Chart, Year to Date Return | 0.94% |
| Bar Chart, Year to Date Return, Date | Jun. 30, 2026 |
| Highest Quarterly Return, Label [Optional Text] | <span style="font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Best Quarter Return</span> |
| Highest Quarterly Return | 7.42% |
| Highest Quarterly Return, Date | Dec. 31, 2023 |
| Lowest Quarterly Return, Label [Optional Text] | <span style="font-family:Arial Narrow;font-size:7.5pt;margin-left:0.0pt;">Worst Quarter Return</span> |
| Lowest Quarterly Return | (5.62%) |
| Lowest Quarterly Return, Date | Sep. 30, 2022 |