<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:gst="http://www.gsamfunds.com/20260612"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cik0000822977-20260612.xsd" xlink:type="simple"/>
    <context id="DefaultContext">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000822977</identifier>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="S000009324Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000822977</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">gst:S000009324Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <context id="S000009340Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000822977</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">gst:S000009340Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="DefaultContext"
      id="h3_52749b3a_099a_470a_8f1a_cd5054173cad">false</dei:AmendmentFlag>
    <dei:DocumentPeriodEndDate
      contextRef="DefaultContext"
      id="h8_1ea34702_2892_4250_ba4c_f982cccd8b8f">2025-12-31</dei:DocumentPeriodEndDate>
    <dei:DocumentType
      contextRef="DefaultContext"
      id="h7_3c8f2687_f949_45bc_b7df_6afa98b1c07a">497</dei:DocumentType>
    <dei:EntityCentralIndexKey
      contextRef="DefaultContext"
      id="h1_ac916d7e_2c00_4642_8104_3b49899fd83c">0000822977</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType
      contextRef="DefaultContext"
      id="h_1_3684cd19-f331-d576-9e92-88497c9a97fc">N-1A</dei:EntityInvCompanyType>
    <oef:SupplementToProspectusTextBlock
      contextRef="S000009340Member"
      id="t_1_9bd8f661_b508_161d_0e91_991df1405c36">   &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 13pt; font-family: times new roman; font-weight: bold; text-align: center;"&gt;GOLDMAN SACHS TRUST&lt;/div&gt;      &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;Class&#160;A, Class&#160;C, Institutional, Service, Investor, Class&#160;R6 and Class&#160;P Shares (as applicable) of the&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; font-weight: bold; text-align: center;"&gt;Goldman Sachs U.S. Tax&#x2011;Managed Equity Fund&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;(the &#x201c;Funds&#x201d;)&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Supplement dated June&#160;12, 2026 to the &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Prospectuses, Summary Prospectuses and Statement of Additional Information (&#x201c;SAI&#x201d;), &lt;/span&gt;&lt;/div&gt;      &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;each dated April&#160;30, 2026, as supplemented to date &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;At a special meeting of the shareholders of the Goldman Sachs Trust held on June&#160;12, 2026, the respective shareholders of the Funds approved a proposal to change the Funds&#x2019; sub&#x2011;classification under the Investment Company Act of 1940, as amended, from &#x201c;diversified&#x201d; to &#x201c;non&#x2011;diversified&#x201d; and eliminated any related fundamental investment restrictions.&lt;/div&gt;  &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;Accordingly, effective immediately, the Funds are &#x201c;non&#x2011;diversified&#x201d; and may invest a greater portion of their assets in one or more issuers or in fewer issuers than &#x201c;diversified&#x201d; mutual funds.&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;As a &#x201c;non&#x2011;diversified&#x201d; fund, each Fund would be more susceptible to adverse developments affecting any single issuer held in its portfolio to the extent that each Fund accumulates a larger position in that issuer, and would be more susceptible to greater losses because of these developments.&lt;/div&gt;   </oef:SupplementToProspectusTextBlock>
    <oef:SupplementToProspectusTextBlock
      contextRef="S000009324Member"
      id="t_2_a8248f88_3c47_0b46_3ea4_0b6eff3e4f40">  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 13pt; font-family: times new roman; font-weight: bold; text-align: center;"&gt;GOLDMAN SACHS TRUST&lt;/div&gt;   &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;Class&#160;A, Class&#160;C, Institutional, Service, Investor, Class&#160;R6 and Class&#160;P Shares (as applicable) of the&lt;/div&gt;   &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; font-weight: bold; text-align: center;"&gt;Goldman Sachs U.S. Equity Dividend and Premium Fund&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;(the &#x201c;Funds&#x201d;)&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Supplement dated June&#160;12, 2026 to the &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Prospectuses, Summary Prospectuses and Statement of Additional Information (&#x201c;SAI&#x201d;), &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;each dated April&#160;30, 2026, as supplemented to date &lt;/span&gt;&lt;/div&gt;     &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;At a special meeting of the shareholders of the Goldman Sachs Trust held on June&#160;12, 2026, the respective shareholders of the Funds approved a proposal to change the Funds&#x2019; sub&#x2011;classification under the Investment Company Act of 1940, as amended, from &#x201c;diversified&#x201d; to &#x201c;non&#x2011;diversified&#x201d; and eliminated any related fundamental investment restrictions.&lt;/div&gt;      &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;Accordingly, effective immediately, the Funds are &#x201c;non&#x2011;diversified&#x201d; and may invest a greater portion of their assets in one or more issuers or in fewer issuers than &#x201c;diversified&#x201d; mutual funds.&lt;/div&gt;     &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;As a &#x201c;non&#x2011;diversified&#x201d; fund, each Fund would be more susceptible to adverse developments affecting any single issuer held in its portfolio to the extent that each Fund accumulates a larger position in that issuer, and would be more susceptible to greater losses because of these developments.&lt;/div&gt;  </oef:SupplementToProspectusTextBlock>
    <oef:SupplementToProspectusTextBlock
      contextRef="DefaultContext"
      id="t_3_6cf370b5_9a49_ad6f_df19_cfde2db0d97e"> &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 13pt; font-family: times new roman; font-weight: bold; text-align: center;"&gt;GOLDMAN SACHS TRUST&lt;/div&gt;   &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;Class&#160;A, Class&#160;C, Institutional, Service, Investor, Class&#160;R6 and Class&#160;P Shares (as applicable) of the&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; font-weight: bold; text-align: center;"&gt;Goldman Sachs U.S. Tax&#x2011;Managed Equity Fund&lt;/div&gt;   &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; font-weight: bold; text-align: center;"&gt;Goldman Sachs U.S. Equity Dividend and Premium Fund&lt;/div&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;(the &#x201c;Funds&#x201d;)&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Supplement dated June&#160;12, 2026 to the &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Prospectuses, Summary Prospectuses and Statement of Additional Information (&#x201c;SAI&#x201d;), &lt;/span&gt;&lt;/div&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;each dated April&#160;30, 2026, as supplemented to date &lt;/span&gt;&lt;/div&gt;   &lt;div style="margin-top: 18pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;At a special meeting of the shareholders of the Goldman Sachs Trust held on June&#160;12, 2026, the respective shareholders of the Funds approved a proposal to change the Funds&#x2019; sub&#x2011;classification under the Investment Company Act of 1940, as amended, from &#x201c;diversified&#x201d; to &#x201c;non&#x2011;diversified&#x201d; and eliminated any related fundamental investment restrictions.&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;Accordingly, effective immediately, the Funds are &#x201c;non&#x2011;diversified&#x201d; and may invest a greater portion of their assets in one or more issuers or in fewer issuers than &#x201c;diversified&#x201d; mutual funds.&lt;/div&gt;   &lt;div style="margin-top: 6pt; margin-bottom: 0pt; font-size: 9pt; font-family: times new roman;"&gt;As a &#x201c;non&#x2011;diversified&#x201d; fund, each Fund would be more susceptible to adverse developments affecting any single issuer held in its portfolio to the extent that each Fund accumulates a larger position in that issuer, and would be more susceptible to greater losses because of these developments.&lt;/div&gt; </oef:SupplementToProspectusTextBlock>
    <dei:EntityRegistrantName
      contextRef="DefaultContext"
      id="t_4_ddc73f67_c2bc_bb29_0344_02fb26b13358">GOLDMAN SACHS TRUST</dei:EntityRegistrantName>
    <oef:ProspectusDate
      contextRef="DefaultContext"
      id="t_5_7de489c4_8287_dec8_56a9_d81c7637251d">2026-04-30</oef:ProspectusDate>
</xbrl>
