<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <context id="c-4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <context id="c-5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <context id="c-6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <context id="c-7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>6</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <context id="c-8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001510295</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>7</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-43">0001510295</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-44">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-1" id="f-45">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp contextRef="c-1" id="f-46">S-3ASR</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa contextRef="c-1" id="f-47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="c-1" id="f-1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-2">MARATHON PETROLEUM CORPORATION</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-3">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-3" id="f-4">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-4" id="f-5">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-5" id="f-6">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-6" id="f-7">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-7" id="f-8">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-8" id="f-9">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-10">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-11">Senior debt securities</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-2" id="f-12">true</ffd:Rule457rFlg>
    <ffd:OfferingSctyTp contextRef="c-3" id="f-13">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-3" id="f-14">Subordinate debt securities</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-3" id="f-15">true</ffd:Rule457rFlg>
    <ffd:OfferingSctyTp contextRef="c-4" id="f-16">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-4" id="f-17">Common Stock</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-4" id="f-18">true</ffd:Rule457rFlg>
    <ffd:OfferingSctyTp contextRef="c-5" id="f-19">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-5" id="f-20">Preferred Stock</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-5" id="f-21">true</ffd:Rule457rFlg>
    <ffd:OfferingSctyTp contextRef="c-6" id="f-22">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-6" id="f-23">Warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-6" id="f-24">true</ffd:Rule457rFlg>
    <ffd:OfferingSctyTp contextRef="c-7" id="f-25">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-7" id="f-26">Stock Purchase Contracts</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-7" id="f-27">true</ffd:Rule457rFlg>
    <ffd:OfferingSctyTp contextRef="c-8" id="f-28">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-8" id="f-29">Stock Purchase Units</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-8" id="f-30">true</ffd:Rule457rFlg>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-31" unitRef="usd">0</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-32" unitRef="usd">0</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-1" decimals="2" id="f-33" unitRef="usd">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-34" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-35" unitRef="usd">0</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-8" id="f-42">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:100%"&gt;(1) Any securities registered hereunder may be sold separately or as units with other securities registered hereunder.&lt;br/&gt;(2) The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &#x201c;pay-as-you-go registration fees&#x201d; in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment.&lt;br/&gt;(3) An indeterminate aggregate offering price or principal amount or number of the securities is being registered as may be offered from time to time at indeterminate prices and as may be issuable upon conversion, redemption, exchange, exercise or settlement of any securities registered hereunder, including under any applicable anti-dilution provisions.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-7" id="f-41">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:100%"&gt;(1) Any securities registered hereunder may be sold separately or as units with other securities registered hereunder.&lt;br/&gt;(2) The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &#x201c;pay-as-you-go registration fees&#x201d; in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment.&lt;br/&gt;(3) An indeterminate aggregate offering price or principal amount or number of the securities is being registered as may be offered from time to time at indeterminate prices and as may be issuable upon conversion, redemption, exchange, exercise or settlement of any securities registered hereunder, including under any applicable anti-dilution provisions.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-6" id="f-40">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:100%"&gt;(1) Any securities registered hereunder may be sold separately or as units with other securities registered hereunder.&lt;br/&gt;(2) The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &#x201c;pay-as-you-go registration fees&#x201d; in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment.&lt;br/&gt;(3) An indeterminate aggregate offering price or principal amount or number of the securities is being registered as may be offered from time to time at indeterminate prices and as may be issuable upon conversion, redemption, exchange, exercise or settlement of any securities registered hereunder, including under any applicable anti-dilution provisions.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-5" id="f-39">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:100%"&gt;(1) Any securities registered hereunder may be sold separately or as units with other securities registered hereunder.&lt;br/&gt;(2) The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &#x201c;pay-as-you-go registration fees&#x201d; in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment.&lt;br/&gt;(3) An indeterminate aggregate offering price or principal amount or number of the securities is being registered as may be offered from time to time at indeterminate prices and as may be issuable upon conversion, redemption, exchange, exercise or settlement of any securities registered hereunder, including under any applicable anti-dilution provisions.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-4" id="f-38">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:100%"&gt;(1) Any securities registered hereunder may be sold separately or as units with other securities registered hereunder.&lt;br/&gt;(2) The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &#x201c;pay-as-you-go registration fees&#x201d; in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment.&lt;br/&gt;(3) An indeterminate aggregate offering price or principal amount or number of the securities is being registered as may be offered from time to time at indeterminate prices and as may be issuable upon conversion, redemption, exchange, exercise or settlement of any securities registered hereunder, including under any applicable anti-dilution provisions.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-3" id="f-37">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:100%"&gt;(1) Any securities registered hereunder may be sold separately or as units with other securities registered hereunder.&lt;br/&gt;(2) The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &#x201c;pay-as-you-go registration fees&#x201d; in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment.&lt;br/&gt;(3) An indeterminate aggregate offering price or principal amount or number of the securities is being registered as may be offered from time to time at indeterminate prices and as may be issuable upon conversion, redemption, exchange, exercise or settlement of any securities registered hereunder, including under any applicable anti-dilution provisions.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-2" id="f-36">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:8pt;font-weight:400;line-height:100%"&gt;(1) Any securities registered hereunder may be sold separately or as units with other securities registered hereunder.&lt;br/&gt;(2) The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay &#x201c;pay-as-you-go registration fees&#x201d; in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment.&lt;br/&gt;(3) An indeterminate aggregate offering price or principal amount or number of the securities is being registered as may be offered from time to time at indeterminate prices and as may be issuable upon conversion, redemption, exchange, exercise or settlement of any securities registered hereunder, including under any applicable anti-dilution provisions.&lt;/span&gt;</ffd:OfferingNote>
</xbrl>
