<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2024q2"
  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/2024q2/ffd-2024q2.xsd"
      xlink:type="simple"/>
    <context id="P01_16_2025To01_16_2025">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001308648</identifier>
        </entity>
        <period>
            <startDate>2025-01-16</startDate>
            <endDate>2025-01-16</endDate>
        </period>
    </context>
    <context id="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001308648</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-01-16</startDate>
            <endDate>2025-01-16</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_pure">
        <measure>pure</measure>
    </unit>
    <unit id="Unit_shares">
        <measure>shares</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P01_16_2025To01_16_2025" id="ixv-182">0001308648</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="P01_16_2025To01_16_2025" id="ixv-183">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:PrevslyPdFlg
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      id="ixv-184">false</ffd:PrevslyPdFlg>
    <ffd:FormTp contextRef="P01_16_2025To01_16_2025" id="ixv-20">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="P01_16_2025To01_16_2025" id="ixv-209">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName contextRef="P01_16_2025To01_16_2025" id="ixv-210">First Majestic Silver Corp</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      id="ixv-211">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      id="ixv-112">Common shares, no par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      id="ixv-212">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-213"
      unitRef="Unit_shares">8242244</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      decimals="2"
      id="ixv-214"
      unitRef="Unit_pure">3.52</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-215"
      unitRef="Unit_USD">29012699</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      decimals="INF"
      id="ixv-216"
      unitRef="Unit_pure">0.0001531</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-217"
      unitRef="Unit_USD">4442</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="P01_16_2025To01_16_2025"
      decimals="0"
      id="ixv-218"
      unitRef="Unit_USD">29012699</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="P01_16_2025To01_16_2025"
      decimals="0"
      id="ixv-219"
      unitRef="Unit_USD">4442</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="P01_16_2025To01_16_2025"
      decimals="0"
      id="ixv-220"
      unitRef="Unit_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="P01_16_2025To01_16_2025"
      decimals="0"
      id="ixv-221"
      unitRef="Unit_USD">4442</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="P01_16_2025To01_16_2025_1TypedMemberffdOfferingAxis"
      id="ixv-163">
&lt;table cellpadding="0" cellspacing="0" style="text-align:start; BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;border:0;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="width:4%;vertical-align:top;text-align:left"&gt;(1)&lt;/td&gt;
&lt;td style="vertical-align:top;text-align:left"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-align: left; line-height: normal;"&gt;Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this registration statement on Form &lt;div style="white-space: nowrap; letter-spacing: 0px; top: 0px;display:inline;"&gt;S-8&lt;/div&gt; (&#x201c;Registration Statement&#x201d;) also covers any additional number of common shares, no par value per share (&#x201c;Common Shares&#x201d;) of First Majestic Silver Corp (the &#x201c;Company&#x201d;) that become issuable under the Gatos Silver, Inc. Amended and Restated Long Term Incentive Plan (the &#x201c;LTIP&#x201d;) by reason of any stock splits, stock dividends or other distribution, recapitalization or similar transaction effected without receipt of consideration that increases the number of outstanding number of Common Shares.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="text-align:start; BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;border:0;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="width:4%;vertical-align:top;text-align:left"&gt;(2)&lt;/td&gt;
&lt;td style="vertical-align:top;text-align:left"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-align: left; line-height: normal;"&gt;Represents 8,242,244 Common Shares that may be issued pursuant to the exercise of outstanding option awards granted under the LTIP.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;table cellpadding="0" cellspacing="0" style="text-align:start; BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;border:0;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="width:4%;vertical-align:top;text-align:left"&gt;(3)&lt;/td&gt;
&lt;td style="vertical-align:top;text-align:left"&gt;&lt;div style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt; font-family: &amp;quot;Times New Roman&amp;quot;; text-align: left; line-height: normal;"&gt;Estimated pursuant to Rule 457(h) under the Securities Act of 1933 solely for the purpose of calculating the registration fee on the basis of the weighted average exercise price of the outstanding options, converted from Canadian dollars into United States dollars using the daily rate of exchange reported by the Bank of Canada on January&#160;13, 2025, of Cdn.$1.00 = US$0.6937. &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</ffd:OfferingNote>
</xbrl>
