<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <context id="ofst_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <context id="ofst_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OffsetAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-365">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-366">424B5</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-367">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb contextRef="rc" id="ixv-368">333-296919</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-369">0001039684</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-370">ONEOK INC /NEW/</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa" xsi:nil="true"/>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetClmdInd contextRef="ofst_1" id="ixv-374">true</ffd:OffsetClmdInd>
    <ffd:OffsetClmdInd contextRef="ofst_2" id="ixv-375">false</ffd:OffsetClmdInd>
    <ffd:FormTp contextRef="rc" id="ixv-418">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-419">ONEOK INC /NEW/</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-420">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-421">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-422">Common Stock, $0.01 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_1" id="ixv-423">true</ffd:Rule457rFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-424"
      unitRef="USD">1000000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-425"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-426"
      unitRef="USD">138100.00</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-427" unitRef="USD">1000000000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-428" unitRef="USD">138100.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-429" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-430" unitRef="USD">138100.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-431" unitRef="USD">0.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-432">In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant initially deferred payment of all of the registration fees for the Registration Statement on Form S-3 (Registration No. 333-296919), filed on June 18, 2026, as amended by Post-Effective Amendment No. 1, filed on September 10, 2026, except with respect to unsold securities that have been previously registered.</ffd:OfferingNote>
    <ffd:Rule457pOffsetFlg contextRef="ofst_1" id="ixv-433">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="ofst_1" id="ixv-434">ONEOK, Inc./NEW/</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="ofst_1" id="ixv-435">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="ofst_1" id="ixv-436">333-296919</ffd:OffsetPrrFileNb>
    <ffd:OffsetClmInitlFilgDt contextRef="ofst_1" id="ixv-437">2026-08-04</ffd:OffsetClmInitlFilgDt>
    <ffd:OffsetClmdAmt contextRef="ofst_1" decimals="2" id="ixv-438" unitRef="USD">138100.00</ffd:OffsetClmdAmt>
    <ffd:OffsetPrrSctyTp contextRef="ofst_1" id="ixv-439">Equity</ffd:OffsetPrrSctyTp>
    <ffd:OffsetPrrSctyTitl contextRef="ofst_1" id="ixv-440">Common Stock, $0.01 par value per share</ffd:OffsetPrrSctyTitl>
    <ffd:OffsetPrrUnsoldOfferingAmt contextRef="ofst_1" decimals="2" id="ixv-441" unitRef="USD">1000000000.00</ffd:OffsetPrrUnsoldOfferingAmt>
    <ffd:Rule457pOffsetFlg contextRef="ofst_2" id="ixv-442">true</ffd:Rule457pOffsetFlg>
    <ffd:OffsetPrrFilerNm contextRef="ofst_2" id="ixv-443">ONEOK, Inc./NEW/</ffd:OffsetPrrFilerNm>
    <ffd:OffsetPrrFormTp contextRef="ofst_2" id="ixv-444">S-3</ffd:OffsetPrrFormTp>
    <ffd:OffsetPrrFileNb contextRef="ofst_2" id="ixv-445">333-296919</ffd:OffsetPrrFileNb>
    <ffd:OffsetSrcFilgDt contextRef="ofst_2" id="ixv-446">2026-08-04</ffd:OffsetSrcFilgDt>
    <ffd:OffsetPrrFeeAmt contextRef="ofst_2" decimals="2" id="ixv-447" unitRef="USD">138100.00</ffd:OffsetPrrFeeAmt>
    <ffd:TermntnCmpltnWdrwl contextRef="ofst_1" id="ixv-448">The registrant has previously registered shares of common stock having a proposed maximum aggregate offering price of up to $1,000,000,000.00 offered by means of a prospectus supplement dated August 4, 2026 (the "Prior Prospectus Supplement") and the accompanying prospectus dated June 18, 2026 that formed a part of a registration statement on Form S-3 (Registration No. 333-296919). Of those shares of common stock, no shares of common stock have been sold. In connection with the filing of the Prior Prospectus Supplement, the registrant paid a registration fee of $138,100.00, of which the full amount relates to unsold common stock that is available to offset registration fees payable pursuant to this prospectus supplement. The registrant hereby offsets $138,100.00 of registration fees due under this prospectus supplement using the previously paid but unused registration fees associated with the Prior Prospectus Supplement. Accordingly, no filing fee is being paid herewith.</ffd:TermntnCmpltnWdrwl>
    <ffd:NrrtvMaxAggtOfferingPric contextRef="rc" decimals="2" id="ixv-449" unitRef="USD">1000000000.00</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:FnlPrspctsFlg contextRef="rc" id="ixv-450">true</ffd:FnlPrspctsFlg>
</xbrl>
