<?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"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712762</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712762</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712762</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <context id="offrl_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712762</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <context id="offrl_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712762</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <context id="offrl_5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001712762</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-430">S-1</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-431">S-1</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-432">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-433">0001712762</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-434">bioAffinity Technologies, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="rc" id="ixv-498">S-1</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-499">bioAffinity Technologies, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-500">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-501">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-502">Common stock, par value $0.007 per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_1" id="ixv-503">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-504"
      unitRef="USD">4000000.08</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="7"
      id="ixv-505"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-506"
      unitRef="USD">552.40</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-507">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-508">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-509">Pre-funded warrants to purchase shares of common stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_2" id="ixv-510">true</ffd:FeesOthrRuleFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="2"
      id="ixv-511"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="7"
      id="ixv-512"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="2"
      id="ixv-513"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_3" id="ixv-514">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_3" id="ixv-515">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_3" id="ixv-516">Shares of common stock issuable upon exercise of the pre-funded warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_3" id="ixv-517">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_3"
      decimals="2"
      id="ixv-518"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_3"
      decimals="7"
      id="ixv-519"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_3"
      decimals="2"
      id="ixv-520"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_4" id="ixv-521">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_4" id="ixv-522">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_4" id="ixv-523">Placement Agent's warrants to purchase shares of common stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_4" id="ixv-524">true</ffd:FeesOthrRuleFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_4"
      decimals="2"
      id="ixv-525"
      unitRef="USD">0.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_4"
      decimals="7"
      id="ixv-526"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_4"
      decimals="2"
      id="ixv-527"
      unitRef="USD">0.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="offrl_5" id="ixv-528">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="offrl_5" id="ixv-529">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_5" id="ixv-530">Shares of common stock issuable upon exercise of the Placement Agent warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="offrl_5" id="ixv-531">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_5"
      decimals="2"
      id="ixv-532"
      unitRef="USD">119999.44</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_5"
      decimals="7"
      id="ixv-533"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_5"
      decimals="2"
      id="ixv-534"
      unitRef="USD">16.57</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-535" unitRef="USD">4119999.52</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-536" unitRef="USD">568.97</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="rc" decimals="2" id="ixv-537" unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-538" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-539" unitRef="USD">568.97</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-540">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is also registering an indeterminate number of additional shares of Common Stock that may become issuable as a result of any stock dividend, stock split, recapitalization or other similar transaction, and the shares of Common Stock set forth in this table shall be adjusted to include such shares, as applicable.

Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-541">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is also registering an indeterminate number of additional shares of Common Stock that may become issuable as a result of any stock dividend, stock split, recapitalization or other similar transaction, and the shares of Common Stock set forth in this table shall be adjusted to include such shares, as applicable.

Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act.

No separate fee is required pursuant to Rule 457(g) under the Securities Act.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_3" id="ixv-542">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is also registering an indeterminate number of additional shares of Common Stock that may become issuable as a result of any stock dividend, stock split, recapitalization or other similar transaction, and the shares of Common Stock set forth in this table shall be adjusted to include such shares, as applicable.

Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act.

The proposed maximum aggregate offering price of the common stock will be reduced on a dollar-for-dollar basis based on the offering price of any pre-funded warrants issued in the offering, and the proposed maximum aggregate offering price of the pre-funded warrants to be issued in the offering will be reduced on a dollar-for-dollar basis based on the offering price of any common stock issued in the offering.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_4" id="ixv-543">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is also registering an indeterminate number of additional shares of Common Stock that may become issuable as a result of any stock dividend, stock split, recapitalization or other similar transaction, and the shares of Common Stock set forth in this table shall be adjusted to include such shares, as applicable.

Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act.

The proposed maximum aggregate offering price of the common stock will be reduced on a dollar-for-dollar basis based on the offering price of any pre-funded warrants issued in the offering, and the proposed maximum aggregate offering price of the pre-funded warrants to be issued in the offering will be reduced on a dollar-for-dollar basis based on the offering price of any common stock issued in the offering.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_5" id="ixv-544">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the "Securities Act"), the registrant is also registering an indeterminate number of additional shares of Common Stock that may become issuable as a result of any stock dividend, stock split, recapitalization or other similar transaction, and the shares of Common Stock set forth in this table shall be adjusted to include such shares, as applicable.

Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(o) under the Securities Act.

Represents warrants to purchase an amount of shares of our common stock equal to 3% of the number of shares of common stock and/or pre-funded warrants and/or warrants issued in this offering (including any shares sold to cover over-allotments, if any), at an exercise price per share equal to 110% of the combined public offering price.</ffd:OfferingNote>
</xbrl>
