Shareholder Report |
6 Months Ended | |||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Sep. 30, 2026
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 | Sep. 30, 2026 | |||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report Annual or Semi-Annual | Semi-Annual Shareholder Report | |||||||||||||||||||||||||||||||||||||||||||
| C000025256 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Dynamic Municipal Income Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class A | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSMIX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Dynamic Municipal Income Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 36 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.72% | [1] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 11,662,249,683 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 4,892 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 20,705,841 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 12.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025258 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Dynamic Municipal Income Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class C | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSMUX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Dynamic Municipal Income Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 72 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 1.47% | [2] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 11,662,249,683 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 4,892 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 20,705,841 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 12.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025254 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Dynamic Municipal Income Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Institutional Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSMTX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Dynamic Municipal Income Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 19 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.39% | [3] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 11,662,249,683 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 4,892 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 20,705,841 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 12.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025255 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Dynamic Municipal Income Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Service Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSMEX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Dynamic Municipal Income Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 43 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.88% | [4] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 11,662,249,683 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 4,892 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 20,705,841 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 12.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000090756 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Dynamic Municipal Income Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Investor Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GUIRX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Dynamic Municipal Income Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 23 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.47% | [5] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 11,662,249,683 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 4,892 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 20,705,841 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 12.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000195491 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Dynamic Municipal Income Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class R6 | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GYISX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Dynamic Municipal Income Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 19 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.38% | [6] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 11,662,249,683 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 4,892 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 20,705,841 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 12.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000202029 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Dynamic Municipal Income Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class P | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GAJPX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Dynamic Municipal Income Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 19 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.38% | [7] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 11,662,249,683 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 4,892 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 20,705,841 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 12.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025272 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs High Yield Municipal Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class A | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GHYAX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs High Yield Municipal Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 41 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.84% | [8] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 12,965,674,981 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 3,761 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 33,347,110 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 7.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025274 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs High Yield Municipal Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class C | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GHYCX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs High Yield Municipal Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 78 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 1.59% | [9] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 12,965,674,981 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 3,761 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 33,347,110 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 7.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025270 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs High Yield Municipal Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Institutional Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GHYIX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs High Yield Municipal Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 26 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.53% | [10] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 12,965,674,981 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 3,761 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 33,347,110 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 7.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000090757 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs High Yield Municipal Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Investor Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GYIRX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs High Yield Municipal Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 29 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.59% | [11] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 12,965,674,981 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 3,761 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 33,347,110 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 7.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000195492 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs High Yield Municipal Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class R6 | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GHYSX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs High Yield Municipal Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 26 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.52% | [12] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 12,965,674,981 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 3,761 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 33,347,110 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 7.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000202030 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs High Yield Municipal Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class P | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GGLPX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs High Yield Municipal Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 26 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.52% | [13] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 12,965,674,981 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 3,761 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 33,347,110 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 7.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000210248 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Municipal Income Completion Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Separate Account Institutional | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSAAX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Municipal Income Completion Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 0 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.00% | [14] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 324,169,239 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,194 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 0 | |||||||||||||||||||||||||||||||||||||||||||
| 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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025192 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Short Duration Tax-Free Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class A | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSDTX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Short Duration Tax-Free Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 32 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.65% | [15] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 5,341,006,975 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,876 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 9,079,526 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 26.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025194 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Short Duration Tax-Free Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class C | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSTCX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Short Duration Tax-Free Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 52 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 1.05% | [16] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 5,341,006,975 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,876 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 9,079,526 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 26.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025190 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Short Duration Tax-Free Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Institutional Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSDUX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Short Duration Tax-Free Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 19 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.38% | [17] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 5,341,006,975 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,876 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 9,079,526 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 26.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000025191 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Short Duration Tax-Free Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Service Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GSFSX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Short Duration Tax-Free Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 44 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.88% | [18] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 5,341,006,975 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,876 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 9,079,526 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 26.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000090755 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Short Duration Tax-Free Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Investor Shares | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GDIRX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Short Duration Tax-Free Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 20 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.40% | [19] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 5,341,006,975 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,876 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 9,079,526 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 26.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000195490 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Short Duration Tax-Free Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class R6 | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GDUSX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Short Duration Tax-Free Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 18 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.37% | [20] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 5,341,006,975 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,876 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 9,079,526 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 26.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> | |||||||||||||||||||||||||||||||||||||||||||
| C000202028 | ||||||||||||||||||||||||||||||||||||||||||||
| Shareholder Report [Line Items] | ||||||||||||||||||||||||||||||||||||||||||||
| Fund Name | Goldman Sachs Short Duration Tax-Free Fund | |||||||||||||||||||||||||||||||||||||||||||
| Class Name | Class P | |||||||||||||||||||||||||||||||||||||||||||
| Trading Symbol | GANPX | |||||||||||||||||||||||||||||||||||||||||||
| Annual or Semi-Annual Statement [Text Block] | This semi-annual shareholder report contains important information about Goldman Sachs Short Duration Tax-Free Fund (the “Fund”) for the period of April 1, 2026 to September 30, 2026 (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 | |||||||||||||||||||||||||||||||||||||||||||
| Expenses [Text Block] | ||||||||||||||||||||||||||||||||||||||||||||
| Expenses Paid, Amount | $ 18 | |||||||||||||||||||||||||||||||||||||||||||
| Expense Ratio, Percent | 0.37% | [21] | ||||||||||||||||||||||||||||||||||||||||||
| AssetsNet | $ 5,341,006,975 | |||||||||||||||||||||||||||||||||||||||||||
| Holdings Count | Holding | 1,876 | |||||||||||||||||||||||||||||||||||||||||||
| Advisory Fees Paid, Amount | $ 9,079,526 | |||||||||||||||||||||||||||||||||||||||||||
| InvestmentCompanyPortfolioTurnover | 26.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> | |||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||