<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025q4"
  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/2025q4/ffd-2025q4.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000310158</identifier>
        </entity>
        <period>
            <startDate>2026-04-06</startDate>
            <endDate>2026-04-06</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000310158</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-06</startDate>
            <endDate>2026-04-06</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-150">SC TO</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-151">SC TO-T</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-152">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-153">0000310158</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-154">Merck &amp; Co., Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:Rule011Flg contextRef="offrl_1" id="ixv-157">true</ffd:Rule011Flg>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-182">false</ffd:PrevslyPdFlg>
    <ffd:TxValtn
      contextRef="offrl_1"
      decimals="2"
      id="ixv-183"
      unitRef="USD">6729179680.00</ffd:TxValtn>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-184"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-185"
      unitRef="USD">929299.71</ffd:FeeAmt>
    <ffd:TtlTxValtn contextRef="rc" decimals="2" id="ixv-186" unitRef="USD">6729179680.00</ffd:TtlTxValtn>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-187" unitRef="USD">929299.71</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-188" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-189" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-190" unitRef="USD">929299.71</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-191">Estimated solely for purposes of calculating the filing fee. The transaction valuation was calculated by adding (a) the product of (i) $53.00 (the "Offer Price") and (ii) 115,458,298 Shares issued and outstanding, (b) the product of (i) 12,925,730 Shares pursuant to outstanding options granted and outstanding under equity plans and (ii) the excess of the Offer Price over $10.40 (the weighted average exercise price of such options) and (c) the product of (i) 1,117,996 restricted stock units and (ii) the Offer Price. The calculation of the filing fee is based on information provided by Terns as of April 2, 2026. The filing fee was calculated in accordance with Rule 0-11 under the Securities Exchange Act of 1934, as amended, and Fee Rate Advisory for Fiscal Year 2026, effective October 1, 2025, by multiplying the transaction value by 0.00013810.</ffd:OfferingNote>
</xbrl>
