<?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-06-18</startDate>
            <endDate>2026-06-18</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-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <context id="offrl_5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <context id="offrl_6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>6</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <context id="offrl_7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>7</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <context id="offrl_8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001039684</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>8</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-489">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-490">S-3ASR</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-491">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-492">0001039684</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-493">ONEOK INC /NEW/</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="rc" id="ixv-584">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-585">ONEOK INC /NEW/</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-586">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-587">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-588">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_1" id="ixv-589">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-590"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-591">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-592">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-593">Guarantee of Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_2" id="ixv-594">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-595"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-596">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-597">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-598">Common Stock</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_3" id="ixv-599">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-600"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:PrevslyPdFlg contextRef="offrl_4" id="ixv-601">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-602">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-603">Stock Purchase Contracts</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_4" id="ixv-604">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="7"
      id="ixv-605"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:PrevslyPdFlg contextRef="offrl_5" id="ixv-606">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_5" id="ixv-607">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_5" id="ixv-608">Stock Purchase Contract Units</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_5" id="ixv-609">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_5"
      decimals="7"
      id="ixv-610"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:PrevslyPdFlg contextRef="offrl_6" id="ixv-611">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_6" id="ixv-612">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_6" id="ixv-613">Preferred Stock</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_6" id="ixv-614">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_6"
      decimals="7"
      id="ixv-615"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:PrevslyPdFlg contextRef="offrl_7" id="ixv-616">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_7" id="ixv-617">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_7" id="ixv-618">Depositary Shares</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_7" id="ixv-619">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_7"
      decimals="7"
      id="ixv-620"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:PrevslyPdFlg contextRef="offrl_8" id="ixv-621">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_8" id="ixv-622">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_8" id="ixv-623">Warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="offrl_8" id="ixv-624">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="offrl_8"
      decimals="7"
      id="ixv-625"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-626" unitRef="USD">0.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-627" unitRef="USD">0.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-628" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-629" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-630" unitRef="USD">0.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-631">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-632">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. (4) ONEOK Partners, L.P., ONEOK Partners Intermediate Limited Partnership, Magellan Midstream Partners, L.P., Elk Merger Sub II, L.L.C. and EnLink Midstream Partners, LP may fully and unconditionally guarantee the debt securities of ONEOK, Inc. No separate consideration will be paid in respect of any such guarantees. Pursuant to Rule 457(n) of the Securities Act of 1933, as amended, no separate fee is payable with respect to the guarantees of the debt securities. </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_3" id="ixv-633">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_4" id="ixv-634">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_5" id="ixv-635">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_6" id="ixv-636">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_7" id="ixv-637">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. (3) Each depositary share will be issued under a deposit agreement, will represent a fractional share of preferred stock and will be evidenced by a depositary receipt. </ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_8" id="ixv-638">(1) In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is deferring payments of all registration fees and will pay the registration fees subsequently in advance or on a "pay-as-you-go" basis. The registrant will calculate the registration fee applicable to an offer of securities pursuant to this registration statement based on the fee rate in effect on the date of such fee payment. (2) An indeterminate aggregate offering price or number of securities of each identified class is being registered as may from time to time be offered at indeterminate prices. </ffd:OfferingNote>
</xbrl>
