<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:jpmt4="http://www.jpmorganfunds.com/20260928"
  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="cik0001659326-20260928.xsd" xlink:type="simple"/>
    <context id="DefaultContext">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001659326</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <context id="S000101820Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001659326</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">jpmt4:S000101820Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="DefaultContext"
      id="h3_2dfdffb7_90fd_4de5_82b3_fa326e7c97d2">false</dei:AmendmentFlag>
    <dei:DocumentPeriodEndDate
      contextRef="DefaultContext"
      id="h8_0b3fa157_087b_40ce_9a02_7b90bb3b58c4">2026-05-13</dei:DocumentPeriodEndDate>
    <dei:DocumentType
      contextRef="DefaultContext"
      id="h7_986d2d09_35d3_4ed6_a6e7_2da5640b5038">497</dei:DocumentType>
    <dei:EntityCentralIndexKey
      contextRef="DefaultContext"
      id="h1_b1121b3b_1eb5_4797_9788_b24ee111653e">0001659326</dei:EntityCentralIndexKey>
    <dei:EntityInvCompanyType
      contextRef="DefaultContext"
      id="h_1_c5bfd8e8-903f-700c-0738-58bff2cb3dae">N-1A</dei:EntityInvCompanyType>
    <oef:ProspectusDate
      contextRef="DefaultContext"
      id="h_1_09d96550-7170-5668-2097-0dc02b7dddf8">2026-05-13</oef:ProspectusDate>
    <oef:SupplementToProspectusTextBlock
      contextRef="DefaultContext"
      id="t_2_4b64cc88_9347_7f8c_2c57_3b6ecdf17d5f">  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;J.P. MORGAN MONEY MARKET FUNDS&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;JPMorgan OnChain Liquidity-Token Money Market Fund&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;(the &#x201c;Fund&#x201d;) &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;(Token Class&#160;Shares) &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;(a series of JPMorgan Trust IV) &lt;/span&gt;&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 11pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;Supplement dated October&#160;1, 2026&lt;/div&gt;    &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;to the current Summary Prospectus and Prospectus&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: arial narrow;"&gt;Effective immediately, tokens of the Fund will be available on the Solana blockchain, a public blockchain network.&lt;/div&gt;    &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: arial narrow;"&gt;The 10th paragraph of the &#x201c;Risk/Return Summary &#x2014; Use of Blockchain&#x201d; section of the summary prospectus is hereby deleted and replaced with the following:&lt;/div&gt;    &lt;div style="margin-top: 6pt; margin-bottom: 0pt; margin-left: 4%; font-size: 10pt; font-family: arial narrow;"&gt;Blockchain addresses must be approved by the Fund and must be compatible with the blockchain network that the investor seeks to use and that is made available for use by the Fund. It is the investor&#x2019;s responsibility for ensuring such compatibility. The Ethereum blockchain and the Solana blockchain, both public blockchain networks, are currently the only available blockchains for use by investors, although expansion to other blockchains is anticipated in the future. Only addresses approved by the Fund will be added to the &#x201c;allow list&#x201d; and only addresses on the &#x201c;allow list&#x201d; are authorized to purchase, redeem or transfer token balances, and therefore to submit transaction requests with respect to Fund shares. As noted above, the Fund maintains controls that are designed to correct errors or unauthorized transactions in token balances, regardless of whether the private key for an investor&#x2019;s wallet is maintained by the investor or its third-party wallet provider.&lt;/div&gt;  </oef:SupplementToProspectusTextBlock>
    <oef:SupplementToProspectusTextBlock
      contextRef="S000101820Member"
      id="t_3_5d4065e6_ac20_f39d_a6b7_51906203f8ec"> &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;J.P. MORGAN MONEY MARKET FUNDS&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;JPMorgan OnChain Liquidity-Token Money Market Fund&lt;/div&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;(the &#x201c;Fund&#x201d;) &lt;/span&gt;&lt;/div&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;(Token Class&#160;Shares) &lt;/span&gt;&lt;/div&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 12pt; font-family: arial narrow; text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;(a series of JPMorgan Trust IV) &lt;/span&gt;&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 11pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;Supplement dated October&#160;1, 2026&lt;/div&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt; font-family: arial narrow; font-weight: bold; text-align: center;"&gt;to the current Summary Prospectus and Prospectus&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: arial narrow;"&gt;Effective immediately, tokens of the Fund will be available on the Solana blockchain, a public blockchain network.&lt;/div&gt;  &lt;div style="margin-top: 12pt; margin-bottom: 0pt; font-size: 10pt; font-family: arial narrow;"&gt;The 10th paragraph of the &#x201c;Risk/Return Summary &#x2014; Use of Blockchain&#x201d; section of the summary prospectus is hereby deleted and replaced with the following:&lt;/div&gt;  &lt;div style="margin-top: 6pt; margin-bottom: 0pt; margin-left: 4%; font-size: 10pt; font-family: arial narrow;"&gt;Blockchain addresses must be approved by the Fund and must be compatible with the blockchain network that the investor seeks to use and that is made available for use by the Fund. It is the investor&#x2019;s responsibility for ensuring such compatibility. The Ethereum blockchain and the Solana blockchain, both public blockchain networks, are currently the only available blockchains for use by investors, although expansion to other blockchains is anticipated in the future. Only addresses approved by the Fund will be added to the &#x201c;allow list&#x201d; and only addresses on the &#x201c;allow list&#x201d; are authorized to purchase, redeem or transfer token balances, and therefore to submit transaction requests with respect to Fund shares. As noted above, the Fund maintains controls that are designed to correct errors or unauthorized transactions in token balances, regardless of whether the private key for an investor&#x2019;s wallet is maintained by the investor or its third-party wallet provider.&lt;/div&gt; </oef:SupplementToProspectusTextBlock>
    <dei:EntityRegistrantName
      contextRef="DefaultContext"
      id="t_4_29c9d370_2b10_40f7_eca0_89351c5616e5">JPMorgan Trust IV</dei:EntityRegistrantName>
</xbrl>
