Shareholder Report |
12 Months Ended |
|---|---|
|
Dec. 31, 2025
USD ($)
Holding
| |
| Shareholder Report [Line Items] | |
| Document Type | N-CSR |
| Amendment Flag | false |
| Registrant Name | GOLDMAN SACHS TRUST |
| Entity Central Index Key | 0000822977 |
| Entity Investment Company Type | N-1A |
| Document Period End Date | Dec. 31, 2025 |
| Shareholder Report Annual or Semi-Annual | Annual Shareholder Report |
| C000057076 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Absolute Return Tracker Fund |
| Class Name | Class A |
| Trading Symbol | GARTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Absolute Return Tracker Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 106 |
| Expense Ratio, Percent | 1.01% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 5,560,131,787 |
| Holdings Count | Holding | 3,137 |
| Advisory Fees Paid, Amount | $ 29,881,927 |
| InvestmentCompanyPortfolioTurnover | 134.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000057077 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Absolute Return Tracker Fund |
| Class Name | Class C |
| Trading Symbol | GCRTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Absolute Return Tracker Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 183 |
| Expense Ratio, Percent | 1.76% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 5,560,131,787 |
| Holdings Count | Holding | 3,137 |
| Advisory Fees Paid, Amount | $ 29,881,927 |
| InvestmentCompanyPortfolioTurnover | 134.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201773 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Absolute Return Tracker Fund |
| Class Name | Class P |
| Trading Symbol | GSGPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Absolute Return Tracker Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 67 |
| Expense Ratio, Percent | 0.64% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 5,560,131,787 |
| Holdings Count | Holding | 3,137 |
| Advisory Fees Paid, Amount | $ 29,881,927 |
| InvestmentCompanyPortfolioTurnover | 134.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000066743 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Absolute Return Tracker Fund |
| Class Name | Class R |
| Trading Symbol | GRRTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Absolute Return Tracker Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 132 |
| Expense Ratio, Percent | 1.26% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 5,560,131,787 |
| Holdings Count | Holding | 3,137 |
| Advisory Fees Paid, Amount | $ 29,881,927 |
| InvestmentCompanyPortfolioTurnover | 134.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000161524 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Absolute Return Tracker Fund |
| Class Name | Class R6 |
| Trading Symbol | GARUX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Absolute Return Tracker Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 67 |
| Expense Ratio, Percent | 0.64% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 5,560,131,787 |
| Holdings Count | Holding | 3,137 |
| Advisory Fees Paid, Amount | $ 29,881,927 |
| InvestmentCompanyPortfolioTurnover | 134.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000057078 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Absolute Return Tracker Fund |
| Class Name | Institutional Class |
| Trading Symbol | GJRTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Absolute Return Tracker Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 68 |
| Expense Ratio, Percent | 0.65% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 5,560,131,787 |
| Holdings Count | Holding | 3,137 |
| Advisory Fees Paid, Amount | $ 29,881,927 |
| InvestmentCompanyPortfolioTurnover | 134.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000066744 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Absolute Return Tracker Fund |
| Class Name | Investor Class |
| Trading Symbol | GSRTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Absolute Return Tracker Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 80 |
| Expense Ratio, Percent | 0.76% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 5,560,131,787 |
| Holdings Count | Holding | 3,137 |
| Advisory Fees Paid, Amount | $ 29,881,927 |
| InvestmentCompanyPortfolioTurnover | 134.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000043358 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Commodity Strategy Fund |
| Class Name | Class A |
| Trading Symbol | GSCAX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Commodity Strategy Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 100 |
| Expense Ratio, Percent | 0.93% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 337,225,710 |
| Holdings Count | Holding | 73 |
| Advisory Fees Paid, Amount | $ 1,659,455 |
| InvestmentCompanyPortfolioTurnover | 0.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Expenses [Text Block] | Effective April 30, 2025, the Fund’s Investment Adviser agreed to reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, service fees, taxes, dividend and interest expenses on short sales, interest, broker fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.074% of the Fund’s average daily net assets. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000043359 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Commodity Strategy Fund |
| Class Name | Class C |
| Trading Symbol | GSCCX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Commodity Strategy Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 180 |
| Expense Ratio, Percent | 1.68% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 337,225,710 |
| Holdings Count | Holding | 73 |
| Advisory Fees Paid, Amount | $ 1,659,455 |
| InvestmentCompanyPortfolioTurnover | 0.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Expenses [Text Block] | Effective April 30, 2025, the Fund’s Investment Adviser agreed to reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, service fees, taxes, dividend and interest expenses on short sales, interest, broker fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.074% of the Fund’s average daily net assets. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201770 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Commodity Strategy Fund |
| Class Name | Class P |
| Trading Symbol | GGRPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Commodity Strategy Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 63 |
| Expense Ratio, Percent | 0.59% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 337,225,710 |
| Holdings Count | Holding | 73 |
| Advisory Fees Paid, Amount | $ 1,659,455 |
| InvestmentCompanyPortfolioTurnover | 0.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Expenses [Text Block] | Effective April 30, 2025, the Fund’s Investment Adviser agreed to reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, service fees, taxes, dividend and interest expenses on short sales, interest, broker fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.074% of the Fund’s average daily net assets. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058992 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Commodity Strategy Fund |
| Class Name | Class R |
| Trading Symbol | GCCRX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Commodity Strategy Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 127 |
| Expense Ratio, Percent | 1.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 337,225,710 |
| Holdings Count | Holding | 73 |
| Advisory Fees Paid, Amount | $ 1,659,455 |
| InvestmentCompanyPortfolioTurnover | 0.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Expenses [Text Block] | Effective April 30, 2025, the Fund’s Investment Adviser agreed to reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, service fees, taxes, dividend and interest expenses on short sales, interest, broker fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.074% of the Fund’s average daily net assets. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000161523 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Commodity Strategy Fund |
| Class Name | Class R6 |
| Trading Symbol | GCCUX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Commodity Strategy Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 64 |
| Expense Ratio, Percent | 0.59% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 337,225,710 |
| Holdings Count | Holding | 73 |
| Advisory Fees Paid, Amount | $ 1,659,455 |
| InvestmentCompanyPortfolioTurnover | 0.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Expenses [Text Block] | Effective April 30, 2025, the Fund’s Investment Adviser agreed to reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, service fees, taxes, dividend and interest expenses on short sales, interest, broker fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.074% of the Fund’s average daily net assets. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000043360 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Commodity Strategy Fund |
| Class Name | Institutional Class |
| Trading Symbol | GCCIX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Commodity Strategy Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 65 |
| Expense Ratio, Percent | 0.60% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 337,225,710 |
| Holdings Count | Holding | 73 |
| Advisory Fees Paid, Amount | $ 1,659,455 |
| InvestmentCompanyPortfolioTurnover | 0.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Expenses [Text Block] | Effective April 30, 2025, the Fund’s Investment Adviser agreed to reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, service fees, taxes, dividend and interest expenses on short sales, interest, broker fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.074% of the Fund’s average daily net assets. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058993 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Commodity Strategy Fund |
| Class Name | Investor Class |
| Trading Symbol | GCCTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Commodity Strategy Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 73 |
| Expense Ratio, Percent | 0.68% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 337,225,710 |
| Holdings Count | Holding | 73 |
| Advisory Fees Paid, Amount | $ 1,659,455 |
| InvestmentCompanyPortfolioTurnover | 0.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Expenses [Text Block] | Effective April 30, 2025, the Fund’s Investment Adviser agreed to reduce or limit “Other Expenses” (excluding acquired fund fees and expenses, transfer agency fees and expenses, service fees, taxes, dividend and interest expenses on short sales, interest, broker fees, expenses of shareholder meetings, litigation and indemnification, and extraordinary expenses) to 0.074% of the Fund’s average daily net assets. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025591 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Class A |
| Trading Symbol | GAPAX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 61 |
| Expense Ratio, Percent | 0.55% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025593 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Class C |
| Trading Symbol | GAXCX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 143 |
| Expense Ratio, Percent | 1.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201786 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Class P |
| Trading Symbol | GADPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 20 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058975 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Class R |
| Trading Symbol | GAPRX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 88 |
| Expense Ratio, Percent | 0.80% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000161534 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Class R6 |
| Trading Symbol | GAPUX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 20 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025589 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Institutional Class |
| Trading Symbol | GAPIX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 21 |
| Expense Ratio, Percent | 0.19% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058976 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Investor Class |
| Trading Symbol | GAPTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 33 |
| Expense Ratio, Percent | 0.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025590 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Dynamic Global Equity Fund |
| Class Name | Service Class |
| Trading Symbol | GAPSX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Dynamic Global Equity Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 76 |
| Expense Ratio, Percent | 0.69% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 441,124,147 |
| Holdings Count | Holding | 17 |
| Advisory Fees Paid, Amount | $ 610,086 |
| InvestmentCompanyPortfolioTurnover | 36.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000050447 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs International Equity Dividend and Premium Fund |
| Class Name | Class A |
| Trading Symbol | GIDAX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs International Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 136 |
| Expense Ratio, Percent | 1.19% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 152,534,131 |
| Holdings Count | Holding | 277 |
| Advisory Fees Paid, Amount | $ 1,192,812 |
| InvestmentCompanyPortfolioTurnover | 16.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000050448 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs International Equity Dividend and Premium Fund |
| Class Name | Class C |
| Trading Symbol | GIDCX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs International Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 223 |
| Expense Ratio, Percent | 1.95% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 152,534,131 |
| Holdings Count | Holding | 277 |
| Advisory Fees Paid, Amount | $ 1,192,812 |
| InvestmentCompanyPortfolioTurnover | 16.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201772 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs International Equity Dividend and Premium Fund |
| Class Name | Class P |
| Trading Symbol | GGHPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs International Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 101 |
| Expense Ratio, Percent | 0.88% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 152,534,131 |
| Holdings Count | Holding | 277 |
| Advisory Fees Paid, Amount | $ 1,192,812 |
| InvestmentCompanyPortfolioTurnover | 16.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000200309 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs International Equity Dividend and Premium Fund |
| Class Name | Class R6 |
| Trading Symbol | GIDUX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs International Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 101 |
| Expense Ratio, Percent | 0.88% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 30, 2018 |
| AssetsNet | $ 152,534,131 |
| Holdings Count | Holding | 277 |
| Advisory Fees Paid, Amount | $ 1,192,812 |
| InvestmentCompanyPortfolioTurnover | 16.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000050446 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs International Equity Dividend and Premium Fund |
| Class Name | Institutional Class |
| Trading Symbol | GIDHX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs International Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 102 |
| Expense Ratio, Percent | 0.89% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 152,534,131 |
| Holdings Count | Holding | 277 |
| Advisory Fees Paid, Amount | $ 1,192,812 |
| InvestmentCompanyPortfolioTurnover | 16.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000091966 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs International Equity Dividend and Premium Fund |
| Class Name | Investor Class |
| Trading Symbol | GIRVX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs International Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 108 |
| Expense Ratio, Percent | 0.94% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 152,534,131 |
| Holdings Count | Holding | 277 |
| Advisory Fees Paid, Amount | $ 1,192,812 |
| InvestmentCompanyPortfolioTurnover | 16.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025508 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs U.S. Equity Dividend and Premium Fund |
| Class Name | Class A |
| Trading Symbol | GSPAX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs U.S. Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 107 |
| Expense Ratio, Percent | 1.00% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 3,701,649,154 |
| Holdings Count | Holding | 186 |
| Advisory Fees Paid, Amount | $ 22,687,419 |
| InvestmentCompanyPortfolioTurnover | 29.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025509 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs U.S. Equity Dividend and Premium Fund |
| Class Name | Class C |
| Trading Symbol | GSPQX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs U.S. Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 186 |
| Expense Ratio, Percent | 1.75% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 3,701,649,154 |
| Holdings Count | Holding | 186 |
| Advisory Fees Paid, Amount | $ 22,687,419 |
| InvestmentCompanyPortfolioTurnover | 29.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201766 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs U.S. Equity Dividend and Premium Fund |
| Class Name | Class P |
| Trading Symbol | GSFPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs U.S. Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 72 |
| Expense Ratio, Percent | 0.67% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 3,701,649,154 |
| Holdings Count | Holding | 186 |
| Advisory Fees Paid, Amount | $ 22,687,419 |
| InvestmentCompanyPortfolioTurnover | 29.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000200306 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs U.S. Equity Dividend and Premium Fund |
| Class Name | Class R6 |
| Trading Symbol | GIDWX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs U.S. Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 72 |
| Expense Ratio, Percent | 0.67% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 30, 2018 |
| AssetsNet | $ 3,701,649,154 |
| Holdings Count | Holding | 186 |
| Advisory Fees Paid, Amount | $ 22,687,419 |
| InvestmentCompanyPortfolioTurnover | 29.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025507 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs U.S. Equity Dividend and Premium Fund |
| Class Name | Institutional Class |
| Trading Symbol | GSPKX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs U.S. Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 73 |
| Expense Ratio, Percent | 0.68% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 3,701,649,154 |
| Holdings Count | Holding | 186 |
| Advisory Fees Paid, Amount | $ 22,687,419 |
| InvestmentCompanyPortfolioTurnover | 29.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000091963 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs U.S. Equity Dividend and Premium Fund |
| Class Name | Investor Class |
| Trading Symbol | GVIRX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs U.S. Equity Dividend and Premium Fund (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 80 |
| Expense Ratio, Percent | 0.75% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 3,701,649,154 |
| Holdings Count | Holding | 186 |
| Advisory Fees Paid, Amount | $ 22,687,419 |
| InvestmentCompanyPortfolioTurnover | 29.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025449 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Class A |
| Trading Symbol | GIPAX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 58 |
| Expense Ratio, Percent | 0.55% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025451 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Class C |
| Trading Symbol | GIPCX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 137 |
| Expense Ratio, Percent | 1.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201783 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Class P |
| Trading Symbol | GAOPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 19 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058959 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Class R |
| Trading Symbol | GIPRX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 84 |
| Expense Ratio, Percent | 0.80% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000161531 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Class R6 |
| Trading Symbol | GIPUX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 19 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025447 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Institutional Class |
| Trading Symbol | GIPIX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 20 |
| Expense Ratio, Percent | 0.19% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058960 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Investor Class |
| Trading Symbol | GIPTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 32 |
| Expense Ratio, Percent | 0.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025448 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Conservative Allocation Fund |
| Class Name | Service Class |
| Trading Symbol | GIPSX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Conservative Allocation Fund (formerly, Goldman Sachs Balanced Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 73 |
| Expense Ratio, Percent | 0.69% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 609,340,655 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 848,220 |
| InvestmentCompanyPortfolioTurnover | 24.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Balanced Strategy Portfolio to the Goldman Sachs Conservative Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying fixed income, equity, and alternative funds, with increased fixed income and equity allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025513 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Class A |
| Trading Symbol | GOIAX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 59 |
| Expense Ratio, Percent | 0.55% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025515 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Class C |
| Trading Symbol | GOICX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 140 |
| Expense Ratio, Percent | 1.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201784 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Class P |
| Trading Symbol | GGSPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 19 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058961 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Class R |
| Trading Symbol | GPIRX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 86 |
| Expense Ratio, Percent | 0.80% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000161532 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Class R6 |
| Trading Symbol | GOIUX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 19 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025511 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Institutional Class |
| Trading Symbol | GOIIX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 21 |
| Expense Ratio, Percent | 0.19% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058962 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Investor Class |
| Trading Symbol | GPITX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 32 |
| Expense Ratio, Percent | 0.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025512 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Moderate Allocation Fund |
| Class Name | Service Class |
| Trading Symbol | GOISX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Moderate Allocation Fund (formerly, Goldman Sachs Growth & Income Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 74 |
| Expense Ratio, Percent | 0.69% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,064,953,637 |
| Holdings Count | Holding | 27 |
| Advisory Fees Paid, Amount | $ 1,472,959 |
| InvestmentCompanyPortfolioTurnover | 19.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth and Income Strategy Portfolio to the Goldman Sachs Moderate Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025579 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Class A |
| Trading Symbol | GGSAX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 60 |
| Expense Ratio, Percent | 0.55% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025581 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Class C |
| Trading Symbol | GGSCX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 142 |
| Expense Ratio, Percent | 1.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000201785 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Class P |
| Trading Symbol | GGPPX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 20 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| Performance Inception Date | Apr. 17, 2018 |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058973 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Class R |
| Trading Symbol | GGSRX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 87 |
| Expense Ratio, Percent | 0.80% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000161533 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Class R6 |
| Trading Symbol | GGSUX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 20 |
| Expense Ratio, Percent | 0.18% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025577 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Institutional Class |
| Trading Symbol | GGSIX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 21 |
| Expense Ratio, Percent | 0.19% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000058974 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Investor Class |
| Trading Symbol | GGSTX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-526-7384. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-526-7384 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 33 |
| Expense Ratio, Percent | 0.30% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-526-7384. |
| Updated Prospectus Phone Number | 1-800-526-7384 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |
| C000025578 | |
| Shareholder Report [Line Items] | |
| Fund Name | Goldman Sachs Growth Allocation Fund |
| Class Name | Service Class |
| Trading Symbol | GGSSX |
| Annual or Semi-Annual Statement [Text Block] | This annual shareholder report contains important information about Goldman Sachs Growth Allocation Fund (formerly, Goldman Sachs Growth Strategy Portfolio) (the “Fund”) for the period of January 1, 2025 to December 31, 2025 (the “Period”). |
| Additional Information [Text Block] | You can find additional information about the Fund at am.gs.com or dfinview.com/GoldmanSachs. You can also request this information by contacting us at 1-800-621-2550. |
| Material Fund Change Notice [Text Block] | This report describes changes to the Fund that occurred during the Period. |
| Additional Information Phone Number | 1-800-621-2550 |
| Additional Information Website | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">am.gs.com</span> |
| Expenses [Text Block] | |
| Expenses Paid, Amount | $ 75 |
| Expense Ratio, Percent | 0.69% |
| Factors Affecting Performance [Text Block] | |
| Performance Past Does Not Indicate Future [Text] | Performance data quoted above represents past performance. Past performance does not guarantee future results. |
| Line Graph [Table Text Block] | ![]() |
| Average Annual Return [Table Text Block] | |
| AssetsNet | $ 1,116,666,389 |
| Holdings Count | Holding | 26 |
| Advisory Fees Paid, Amount | $ 1,522,121 |
| InvestmentCompanyPortfolioTurnover | 20.00% |
| Additional Fund Statistics [Text Block] | |
| Holdings [Text Block] | |
| Material Fund Change [Text Block] | |
| Material Fund Change Name [Text Block] | Effective February 13, 2026, the Fund changed its name from the Goldman Sachs Growth Strategy Portfolio to the Goldman Sachs Growth Allocation Fund. |
| Material Fund Change Strategies [Text Block] | The Fund also changed its principal investment strategy reflecting that the Fund will operate as a fund-of-funds investing in underlying equity, fixed income, and alternative funds, with increased equity and fixed income allocations, along with the option to invest in alternative asset classes and monthly rebalancing. |
| Summary of Change Legend [Text Block] | This is a summary of certain changes to the Fund for the Period. For more complete information, you may review the Fund's next prospectus, which we expect to be available by April 30, 2026 at dfinview.com/GoldmanSachs or upon request at 1-800-621-2550. |
| Updated Prospectus Phone Number | 1-800-621-2550 |
| Updated Prospectus Web Address | <span style="box-sizing: border-box; color: rgb(0, 0, 0); display: inline; flex-wrap: nowrap; font-size: 12px; font-weight: 400; grid-area: auto; line-height: 18px; margin: 0px; overflow: visible; text-align: left; text-align-last: auto; white-space-collapse: preserve-breaks;">dfinview.com/GoldmanSachs</span> |