<?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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_00c00652-821a-4175-b15a-701cabff61d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001880438</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <context id="C_3d8d2673-467c-465e-887b-7d264b8837ef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001880438</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      id="F_4b0bbfe3-10f3-4a81-9e14-af2d90a53c50">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      id="F_fd9919e8-f100-45b5-ba49-316e6fc70217">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      id="F_e8e56a01-5a3d-4cdb-9829-fdb26a8ad460">0001880438</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      id="F_bd067b1e-65e6-4931-bf05-1d931c9ed81b">S-8</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      id="F_cf787859-4c6f-4fbc-ae3c-4dbf5dad3b7d">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      id="F_47f61cbc-61d8-4cfa-bf88-b5acceaa942d">AN2 Therapeutics, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      id="F_f1b40c83-4c2e-4725-b232-7a6afa481ac2">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      id="F_b868bd18-62bd-4459-814e-63ac9e2e5bd6">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      id="F_4b1af46c-818d-433e-a0fe-c4c28ca6f3d2">Common Stock, $0.00001 par value per share, reserved for issuance pursuant to the Registrant's 2026 Employment Inducement Award Plan</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      id="F_05374fc3-fa6f-4f57-bca8-b4d312da37be">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      decimals="INF"
      id="F_8392f539-53bb-466f-90f5-3491464e82ff"
      unitRef="U_shares">1250000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      decimals="2"
      id="F_8cc668dd-0545-437d-90f0-782a921636ee"
      unitRef="U_USD">5.59</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      decimals="2"
      id="F_faa203d5-9417-4205-8f91-8df793424f44"
      unitRef="U_USD">6987500</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      decimals="7"
      id="F_aa0295bd-9592-42c5-b43f-4d88f8bb268f"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      decimals="2"
      id="F_309415f6-198d-4708-9f50-a5c8e8e69917"
      unitRef="U_USD">964.97</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      decimals="2"
      id="F_328286a8-ff52-4ac6-9041-c02c6d62c40b"
      unitRef="U_USD">6987500</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      decimals="2"
      id="F_bb9516aa-ee03-4657-8802-1da2eaa640ec"
      unitRef="U_USD">964.97</ffd:TtlFeeAmt>
    <ffd:NetFeeAmt
      contextRef="C_3d8d2673-467c-465e-887b-7d264b8837ef"
      decimals="2"
      id="F_39681485-8dad-4547-b0c8-1d46ae0516a9"
      unitRef="U_USD">964.97</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_00c00652-821a-4175-b15a-701cabff61d1"
      id="F_26d74795-5b82-4dbf-8313-86575316b582">&lt;div class="item-list-element-wrapper" style="margin-left:4.528%;tab-size:32px;display:flex;font-size:10pt;margin-top:6pt;justify-content:flex-start;font-family:Arial;align-items:baseline;margin-bottom:0;min-width:4.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:4.7521786492374725%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(1)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Pursuant to Rule 416(a) promulgated under the Securities Act of 1933, a&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;s amended (the &#x201c;Securities Act&#x201d;), this registration statement shall also cover any additional shares of the Registrant&#x2019;s common stock that become issuable under the AN2 Therapeutics, Inc. 2026 Employment Inducement Award Plan (the &#x201c;Inducement Plan&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction effected without the receipt of consideration that increases the number of the Registrant&#x2019;s outstanding shares of common stock.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="margin-left:4.528%;tab-size:32px;display:flex;font-size:10pt;margin-top:6pt;justify-content:flex-start;font-family:Arial;align-items:baseline;margin-bottom:0;min-width:4.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:4.7521786492374725%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(2)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;Pursuant to Rules 457(c) and 457(h) of the Securities Act, the proposed maximum offering price per share is estimated solely for the purpose of calculating the registration fee and is based upon the average of the high and low prices of the Registrant&#x2019;s common stock as reported on the Nasdaq Global Select Market on September 11, 2026, which date is within five business days prior to filing this Registration Statement.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="margin-left:4.528%;tab-size:32px;display:flex;font-size:10pt;margin-top:6pt;justify-content:flex-start;font-family:Arial;align-items:baseline;margin-bottom:0;min-width:4.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:4.7521786492374725%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(3)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Arial;font-kerning:none;min-width:fit-content;"&gt;The Registrant does not have any fee offsets.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
