Shareholder Report |
6 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
May 31, 2025
USD ($)
Holding
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Document Type | N-CSRS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Amendment Flag | false | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Registrant Name | GOLDMAN SACHS TRUST | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Entity Central Index Key | 0000822977 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Entity Investment Company Type | N-1A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Document Period End Date | May 31, 2025 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000219203 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Clean Energy Income Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GCEBX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Clean Energy Income Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 63 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.25% | [1] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 35,760,426 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 146,958 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 17.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000219205 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Clean Energy Income Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class C | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GCEGX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Clean Energy Income Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 2.00% | [2] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 35,760,426 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 146,958 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 17.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000219200 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Clean Energy Income Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class P | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GCEPX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Clean Energy Income Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 45 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 0.88% | [3] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 35,760,426 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 146,958 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 17.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000219201 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Clean Energy Income Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class R6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GCEEX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Clean Energy Income Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 45 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 0.89% | [4] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 35,760,426 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 146,958 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 17.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000219204 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Clean Energy Income Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Institutional Class | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GCEDX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Clean Energy Income Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 45 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 0.89% | [5] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 35,760,426 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 146,958 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 17.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000219206 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Clean Energy Income Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Investor Class | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GCEJX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Clean Energy Income Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.00% | [6] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 35,760,426 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 146,958 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 17.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000193455 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLEAX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 71 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.46% | [7] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 457,814,653 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 2,295,797 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 13.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000193456 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class C | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLECX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | 2.21% | [8] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 457,814,653 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 2,295,797 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 13.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000201753 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class P | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GAMPX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.09% | [9] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 457,814,653 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 2,295,797 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 13.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000193459 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class R | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLERX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.71% | [10] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 457,814,653 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 2,295,797 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 13.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000193460 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class R6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLESX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 53 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.09% | [11] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 457,814,653 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 2,295,797 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 13.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000193457 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Institutional Class | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLEPX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 54 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.10% | [12] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 457,814,653 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 2,295,797 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 13.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000193458 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Investor Class | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLEIX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.21% | [13] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 457,814,653 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 2,295,797 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 13.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000124917 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs MLP Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLPAX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs MLP Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 69 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.41% | [14],[15] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 1,627,983,836 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 8,079,978 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 57.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000124918 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs MLP Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class C | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLPCX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs MLP Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 105 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 2.16% | [16],[17] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 1,627,983,836 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 8,079,978 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 57.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000201752 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs MLP Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class P | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GMNPX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs MLP Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.04% | [18],[19] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 1,627,983,836 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 8,079,978 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 57.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000124921 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs MLP Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class R | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLPRX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs MLP Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 81 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.66% | [20],[21] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 1,627,983,836 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 8,079,978 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 57.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000199576 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs MLP Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Class R6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLPSX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs MLP Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.04% | [22],[23] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 1,627,983,836 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 8,079,978 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 57.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000124919 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs MLP Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Institutional Class | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GMLPX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs MLP Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.05% | [24],[25] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 1,627,983,836 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 8,079,978 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 57.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
C000124920 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fund Name | Goldman Sachs MLP Energy Infrastructure Fund | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Class Name | Investor Class | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Trading Symbol | GLPIX | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs MLP Energy Infrastructure Fund (the "Fund") for the period of December 1, 2024 to May 31, 2025. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | $ 57 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expense Ratio, Percent | 1.16% | [26],[27] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
AssetsNet | $ 1,627,983,836 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings Count | Holding | 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Advisory Fees Paid, Amount | $ 8,079,978 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
InvestmentCompanyPortfolioTurnover | 57.00% | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Additional Fund Statistics [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Holdings [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> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|