Goldman Sachs MLP Energy Infrastructure Fund Average Annual Total Returns - Class A C Inst Inv R R6 Shares [Member] |
12 Months Ended | 60 Months Ended | 99 Months Ended | 120 Months Ended | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
Nov. 30, 2025 |
Dec. 31, 2025 |
Dec. 31, 2025 |
Dec. 31, 2025 |
Dec. 31, 2025 |
||||||
| Alerian MLP Index (Total Return, USD, Unhedged)[Member] | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 9.76% | 25.95% | 8.84% | |||||||
| S&P 500® Index[Member] | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 17.88% | 14.42% | 14.74% | 14.81% | ||||||
| Class A Shares | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | (1.55%) | 21.38% | 6.16% | |||||||
| Performance Inception Date | Mar. 28, 2013 | |||||||||
| Class A Shares | After Taxes on Distributions | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | (3.21%) | 19.15% | 5.09% | |||||||
| Class A Shares | After Taxes on Distributions and Sales | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 0.25% | 16.86% | 4.62% | |||||||
| Class C Shares | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 2.40% | 21.84% | 6.00% | [1] | ||||||
| Performance Inception Date | Mar. 28, 2013 | |||||||||
| Institutional Shares | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 4.58% | 23.19% | 7.18% | |||||||
| Performance Inception Date | Mar. 28, 2013 | |||||||||
| Investor Shares | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 4.45% | 23.05% | 7.05% | |||||||
| Performance Inception Date | Mar. 28, 2013 | |||||||||
| Class R Shares | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 3.93% | 22.44% | 6.51% | |||||||
| Performance Inception Date | Mar. 28, 2013 | |||||||||
| Class R6 Shares | ||||||||||
| Prospectus [Line Items] | ||||||||||
| Average Annual Return, Percent | 4.57% | 23.20% | 7.19% | [2] | ||||||
| Performance Inception Date | Apr. 02, 2018 | |||||||||
| ||||||||||