<?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/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="From2026-09-25to2026-09-30">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001620704</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <context id="OfferingAxis_From2026-09-25to2026-09-30_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001620704</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Pure">
        <measure>pure</measure>
    </unit>
    <ffd:CombinedProspectusTableNa contextRef="From2026-09-25to2026-09-30" id="ixv-336">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa contextRef="From2026-09-25to2026-09-30" id="ixv-337">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp contextRef="From2026-09-25to2026-09-30" id="ixv-338">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp contextRef="From2026-09-25to2026-09-30" id="ixv-339">S-1</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey contextRef="From2026-09-25to2026-09-30" id="ixv-340">0001620704</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="From2026-09-25to2026-09-30" id="ixv-341">Med-X, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp contextRef="From2026-09-25to2026-09-30" id="fid_26440e0b">S-1</ffd:FormTp>
    <ffd:PrevslyPdFlg
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      id="fid_b7e5bc43">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      id="fid_a04476b5">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      id="fid_47cb85dc">common stock, $0.001 par value</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      id="fid_f664505c">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      decimals="INF"
      id="fid_6dc16145"
      unitRef="Pure">13052103</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      decimals="INF"
      id="fid_a0c36b67"
      unitRef="Pure">12</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      decimals="INF"
      id="fid_fe3c0396"
      unitRef="USD">156625236</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      decimals="INF"
      id="fid_45c153f8"
      unitRef="Pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      decimals="INF"
      id="fid_ac8016d2"
      unitRef="USD">21629.95</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="From2026-09-25to2026-09-30"
      decimals="INF"
      id="fid_a5939be4"
      unitRef="USD">156625236</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="From2026-09-25to2026-09-30"
      decimals="INF"
      id="fid_8dbc78f8"
      unitRef="USD">21629.95</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="From2026-09-25to2026-09-30"
      decimals="INF"
      id="fid_cbb22280"
      unitRef="USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:NetFeeAmt
      contextRef="From2026-09-25to2026-09-30"
      decimals="INF"
      id="fid_5d1f1c1a"
      unitRef="USD">21629.95</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="OfferingAxis_From2026-09-25to2026-09-30_1"
      id="fid_08d532f6">&lt;table cellpadding="0" style="border-spacing:0;font-size:10pt;width:100%"&gt;&lt;tbody&gt;&lt;tr style="height:15px"&gt;&lt;td style="width:4%;vertical-align:top;"&gt;&lt;p style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman; MARGIN: 0px; text-align:left;"&gt;(1)&lt;/p&gt;&lt;p style="font-size:10pt;font-family:times new roman;margin:0px"&gt;&#160;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:top;"&gt;&lt;p style="font-size:10pt;font-family:times new roman;margin:0px"&gt;Estimated solely for the purpose of calculating the registration fee pursuant to Rule 457(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;).&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15px"&gt;&lt;td&gt;&lt;p style="font-size:10pt;font-family:times new roman;margin:0px"&gt;&#160;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p style="font-size:10pt;font-family:times new roman;margin:0px"&gt;Pursuant to Rule 416 under the Securities Act, there are also being registered an indeterminable number of additional securities as may be issued to prevent dilution resulting from stock splits, stock dividends or similar transactions.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</ffd:OfferingNote>
</xbrl>
