<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>425</ContextCount>
  <ElementCount>511</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>89</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONSOLIDATED STATEMENTS OF INCOME (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/CONSOLIDATEDSTATEMENTSOFINCOMEUNAUDITED</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF INCOME (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEUNAUDITED</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS??? EQUITY (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITED</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS??? EQUITY (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS??? EQUITY (UNAUDITED) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITYUNAUDITEDParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS??? EQUITY (UNAUDITED) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSUNAUDITED</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS (UNAUDITED)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - BASIS OF PRESENTATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/BASISOFPRESENTATION</Role>
      <ShortName>BASIS OF PRESENTATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - DISCONTINUED OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/DISCONTINUEDOPERATIONS</Role>
      <ShortName>DISCONTINUED OPERATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - INVESTMENT SECURITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INVESTMENTSECURITIES</Role>
      <ShortName>INVESTMENT SECURITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - LOANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LOANS</Role>
      <ShortName>LOANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - ALLOWANCE FOR CREDIT LOSSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSES</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - FAIR VALUE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUE</Role>
      <ShortName>FAIR VALUE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/GOVERNMENTGUARANTEEDLOANSERVICINGACTIVITIES</Role>
      <ShortName>GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - PREMISES AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/PREMISESANDEQUIPMENT</Role>
      <ShortName>PREMISES AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LEASES</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - OTHER BORROWINGS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/OTHERBORROWINGS</Role>
      <ShortName>OTHER BORROWINGS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - STOCK-BASED COMPENSATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/STOCKBASEDCOMPENSATION</Role>
      <ShortName>STOCK-BASED COMPENSATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - OTHER BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/OTHERBENEFITPLANS</Role>
      <ShortName>OTHER BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - REGULATORY MATTERS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/REGULATORYMATTERS</Role>
      <ShortName>REGULATORY MATTERS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/MORTGAGEBANKINGACTIVITIESDISCONTINUEDOPERATIONS</Role>
      <ShortName>MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LOANCOMMITMENTSANDOTHERRELATEDACTIVITIES</Role>
      <ShortName>LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - EARNINGS PER COMMON SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/EARNINGSPERCOMMONSHARE</Role>
      <ShortName>EARNINGS PER COMMON SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954701 - Disclosure - BASIS OF PRESENTATION (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/BASISOFPRESENTATIONPolicies</Role>
      <ShortName>BASIS OF PRESENTATION (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954702 - Disclosure - BASIS OF PRESENTATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/BASISOFPRESENTATIONTables</Role>
      <ShortName>BASIS OF PRESENTATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/BASISOFPRESENTATION</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954703 - Disclosure - DISCONTINUED OPERATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/DISCONTINUEDOPERATIONSTables</Role>
      <ShortName>DISCONTINUED OPERATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/DISCONTINUEDOPERATIONS</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954704 - Disclosure - INVESTMENT SECURITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INVESTMENTSECURITIESTables</Role>
      <ShortName>INVESTMENT SECURITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/INVESTMENTSECURITIES</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954705 - Disclosure - LOANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LOANSTables</Role>
      <ShortName>LOANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/LOANS</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954706 - Disclosure - ALLOWANCE FOR CREDIT LOSSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESTables</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSES</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954707 - Disclosure - FAIR VALUE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUETables</Role>
      <ShortName>FAIR VALUE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/FAIRVALUE</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954708 - Disclosure - GOVERNMENT GUARANTEEDLOAN SERVICING ACTIVITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/GOVERNMENTGUARANTEEDLOANSERVICINGACTIVITIESTables</Role>
      <ShortName>GOVERNMENT GUARANTEEDLOAN SERVICING ACTIVITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954709 - Disclosure - PREMISES AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/PREMISESANDEQUIPMENTTables</Role>
      <ShortName>PREMISES AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/PREMISESANDEQUIPMENT</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954710 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LEASESTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/LEASES</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954711 - Disclosure - STOCK-BASED COMPENSATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/STOCKBASEDCOMPENSATIONTables</Role>
      <ShortName>STOCK-BASED COMPENSATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/STOCKBASEDCOMPENSATION</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954712 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INCOMETAXESTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/INCOMETAXES</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954713 - Disclosure - REGULATORY MATTERS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/REGULATORYMATTERSTables</Role>
      <ShortName>REGULATORY MATTERS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/REGULATORYMATTERS</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954714 - Disclosure - MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/MORTGAGEBANKINGACTIVITIESDISCONTINUEDOPERATIONSTables</Role>
      <ShortName>MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/MORTGAGEBANKINGACTIVITIESDISCONTINUEDOPERATIONS</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954715 - Disclosure - LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LOANCOMMITMENTSANDOTHERRELATEDACTIVITIESTables</Role>
      <ShortName>LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/LOANCOMMITMENTSANDOTHERRELATEDACTIVITIES</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954716 - Disclosure - EARNINGS PER COMMON SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/EARNINGSPERCOMMONSHARETables</Role>
      <ShortName>EARNINGS PER COMMON SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/EARNINGSPERCOMMONSHARE</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954717 - Disclosure - BASIS OF PRESENTATION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/BASISOFPRESENTATIONNarrativeDetails</Role>
      <ShortName>BASIS OF PRESENTATION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954718 - Disclosure - BASIS OF PRESENTATION - Adoption of ASC 326 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/BASISOFPRESENTATIONAdoptionofASC326Details</Role>
      <ShortName>BASIS OF PRESENTATION - Adoption of ASC 326 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954719 - Disclosure - DISCONTINUED OPERATIONS - Assets and Liabilities of the Residential Mortgage Lending Division (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/DISCONTINUEDOPERATIONSAssetsandLiabilitiesoftheResidentialMortgageLendingDivisionDetails</Role>
      <ShortName>DISCONTINUED OPERATIONS - Assets and Liabilities of the Residential Mortgage Lending Division (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954720 - Disclosure - DISCONTINUED OPERATIONS - Operating Results of the Residential Mortgage Lending Division (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/DISCONTINUEDOPERATIONSOperatingResultsoftheResidentialMortgageLendingDivisionDetails</Role>
      <ShortName>DISCONTINUED OPERATIONS - Operating Results of the Residential Mortgage Lending Division (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954721 - Disclosure - INVESTMENT SECURITIES - Debt Securities Available for Sale and Held to Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INVESTMENTSECURITIESDebtSecuritiesAvailableforSaleandHeldtoMaturityDetails</Role>
      <ShortName>INVESTMENT SECURITIES - Debt Securities Available for Sale and Held to Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954722 - Disclosure - INVESTMENT SECURITIES - Investments Classified by Contractual Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INVESTMENTSECURITIESInvestmentsClassifiedbyContractualMaturityDetails</Role>
      <ShortName>INVESTMENT SECURITIES - Investments Classified by Contractual Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954723 - Disclosure - INVESTMENT SECURITIES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INVESTMENTSECURITIESNarrativeDetails</Role>
      <ShortName>INVESTMENT SECURITIES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954724 - Disclosure - INVESTMENT SECURITIES - Allowance for Credit Losses for Investment Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INVESTMENTSECURITIESAllowanceforCreditLossesforInvestmentSecuritiesDetails</Role>
      <ShortName>INVESTMENT SECURITIES - Allowance for Credit Losses for Investment Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954725 - Disclosure - INVESTMENT SECURITIES - Investment Securities With Unrealized Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INVESTMENTSECURITIESInvestmentSecuritiesWithUnrealizedLossesDetails</Role>
      <ShortName>INVESTMENT SECURITIES - Investment Securities With Unrealized Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954726 - Disclosure - LOANS - Loans Held for Investment at Amortized Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LOANSLoansHeldforInvestmentatAmortizedCostDetails</Role>
      <ShortName>LOANS - Loans Held for Investment at Amortized Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954727 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Allowance for Credit Losses by Loan Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESAllowanceforCreditLossesbyLoanSegmentDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Allowance for Credit Losses by Loan Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954728 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESNarrativeDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954729 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Allowance for Credit Losses for Unfunded Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESAllowanceforCreditLossesforUnfundedCommitmentsDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Allowance for Credit Losses for Unfunded Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954730 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Recorded Investment in Nonaccrual and Loans Past Due over 89 Days Still on Accrual by Loan Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESRecordedInvestmentinNonaccrualandLoansPastDueover89DaysStillonAccrualbyLoanSegmentDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Recorded Investment in Nonaccrual and Loans Past Due over 89 Days Still on Accrual by Loan Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954731 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Amortized Cost Basis of Individually Analyzed Collateral Dependent Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESAmortizedCostBasisofIndividuallyAnalyzedCollateralDependentLoansDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Amortized Cost Basis of Individually Analyzed Collateral Dependent Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954732 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Aging of Recorded Investment in Past Due Gross Loans at Amortized Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESAgingofRecordedInvestmentinPastDueGrossLoansatAmortizedCostDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Aging of Recorded Investment in Past Due Gross Loans at Amortized Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954733 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Credit Exposure for the Loan Portfolio Disaggregated by Loan Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESCreditExposurefortheLoanPortfolioDisaggregatedbyLoanSegmentDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Credit Exposure for the Loan Portfolio Disaggregated by Loan Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954734 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Allowance for Credit Losses and Recorded Investment in Loans by Loan Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESAllowanceforCreditLossesandRecordedInvestmentinLoansbyLoanSegmentDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Allowance for Credit Losses and Recorded Investment in Loans by Loan Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954735 - Disclosure - ALLOWANCE FOR CREDIT LOSSES - Information Related to Impaired Loans by Loan Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/ALLOWANCEFORCREDITLOSSESInformationRelatedtoImpairedLoansbyLoanSegmentDetails</Role>
      <ShortName>ALLOWANCE FOR CREDIT LOSSES - Information Related to Impaired Loans by Loan Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954736 - Disclosure - FAIR VALUE - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUEAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954737 - Disclosure - FAIR VALUE - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUENarrativeDetails</Role>
      <ShortName>FAIR VALUE - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954738 - Disclosure - FAIR VALUE - Loans Accounted for Under the Fair Value Option (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUELoansAccountedforUndertheFairValueOptionDetails</Role>
      <ShortName>FAIR VALUE - Loans Accounted for Under the Fair Value Option (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954739 - Disclosure - FAIR VALUE - Government Guaranteed Loans Held for Investment, at Fair Value, Which Were Valued on a Recurring Basis and Used Significant Unobservable Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUEGovernmentGuaranteedLoansHeldforInvestmentatFairValueWhichWereValuedonaRecurringBasisandUsedSignificantUnobservableInputsDetails</Role>
      <ShortName>FAIR VALUE - Government Guaranteed Loans Held for Investment, at Fair Value, Which Were Valued on a Recurring Basis and Used Significant Unobservable Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954740 - Disclosure - FAIR VALUE - Valuation Technique and Unobservable Inputs Used in the Valuation of Government Guaranteed Loans Held for Investment, at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUEValuationTechniqueandUnobservableInputsUsedintheValuationofGovernmentGuaranteedLoansHeldforInvestmentatFairValueDetails</Role>
      <ShortName>FAIR VALUE - Valuation Technique and Unobservable Inputs Used in the Valuation of Government Guaranteed Loans Held for Investment, at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954741 - Disclosure - FAIR VALUE - Assets Measured at Fair Value on a Nonrecurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUEAssetsMeasuredatFairValueonaNonrecurringBasisDetails</Role>
      <ShortName>FAIR VALUE - Assets Measured at Fair Value on a Nonrecurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954742 - Disclosure - FAIR VALUE - Assets and Liabilities Not Carried at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/FAIRVALUEAssetsandLiabilitiesNotCarriedatFairValueDetails</Role>
      <ShortName>FAIR VALUE - Assets and Liabilities Not Carried at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9954743 - Disclosure - GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/GOVERNMENTGUARANTEEDLOANSERVICINGACTIVITIESNarrativeDetails</Role>
      <ShortName>GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9954744 - Disclosure - GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES - Activity for Government Guaranteed Loan Servicing Rights (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/GOVERNMENTGUARANTEEDLOANSERVICINGACTIVITIESActivityforGovernmentGuaranteedLoanServicingRightsDetails</Role>
      <ShortName>GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES - Activity for Government Guaranteed Loan Servicing Rights (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9954745 - Disclosure - GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES - Net Gain on Sale of Government Guaranteed Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/GOVERNMENTGUARANTEEDLOANSERVICINGACTIVITIESNetGainonSaleofGovernmentGuaranteedLoansDetails</Role>
      <ShortName>GOVERNMENT GUARANTEED LOAN SERVICING ACTIVITIES - Net Gain on Sale of Government Guaranteed Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9954746 - Disclosure - PREMISES AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/PREMISESANDEQUIPMENTDetails</Role>
      <ShortName>PREMISES AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/PREMISESANDEQUIPMENTTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9954747 - Disclosure - LEASES - Total Lease Cost and Supplemental Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LEASESTotalLeaseCostandSupplementalInformationDetails</Role>
      <ShortName>LEASES - Total Lease Cost and Supplemental Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9954748 - Disclosure - LEASES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LEASESNarrativeDetails</Role>
      <ShortName>LEASES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9954749 - Disclosure - LEASES - Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LEASESMaturityDetails</Role>
      <ShortName>LEASES - Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9954750 - Disclosure - OTHER BORROWINGS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/OTHERBORROWINGSDetails</Role>
      <ShortName>OTHER BORROWINGS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/OTHERBORROWINGS</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9954751 - Disclosure - STOCK-BASED COMPENSATION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/STOCKBASEDCOMPENSATIONNarrativeDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9954752 - Disclosure - STOCK-BASED COMPENSATION - Nonvested Restricted Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/STOCKBASEDCOMPENSATIONNonvestedRestrictedSharesDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Nonvested Restricted Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9954753 - Disclosure - STOCK-BASED COMPENSATION - Activity in the Equity Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/STOCKBASEDCOMPENSATIONActivityintheEquityPlanDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Activity in the Equity Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9954754 - Disclosure - OTHER BENEFIT PLANS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/OTHERBENEFITPLANSDetails</Role>
      <ShortName>OTHER BENEFIT PLANS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://bayfirstfinancial.com/role/OTHERBENEFITPLANS</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9954755 - Disclosure - INCOME TAXES - Reconciliation of Expected Income Tax Expense (Benefit) using the Federal Statutory Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/INCOMETAXESReconciliationofExpectedIncomeTaxExpenseBenefitusingtheFederalStatutoryRateDetails</Role>
      <ShortName>INCOME TAXES - Reconciliation of Expected Income Tax Expense (Benefit) using the Federal Statutory Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9954756 - Disclosure - REGULATORY MATTERS - Actual and Required Capital Amounts and Ratios for the Bank (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/REGULATORYMATTERSActualandRequiredCapitalAmountsandRatiosfortheBankDetails</Role>
      <ShortName>REGULATORY MATTERS - Actual and Required Capital Amounts and Ratios for the Bank (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9954757 - Disclosure - MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS - Components of Residential Loan Fee Income from Discontinued Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/MORTGAGEBANKINGACTIVITIESDISCONTINUEDOPERATIONSComponentsofResidentialLoanFeeIncomefromDiscontinuedOperationsDetails</Role>
      <ShortName>MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS - Components of Residential Loan Fee Income from Discontinued Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9954758 - Disclosure - MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS - Fair Value of Mortgage Banking Derivative Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/MORTGAGEBANKINGACTIVITIESDISCONTINUEDOPERATIONSFairValueofMortgageBankingDerivativeAssetsandLiabilitiesDetails</Role>
      <ShortName>MORTGAGE BANKING ACTIVITIES - DISCONTINUED OPERATIONS - Fair Value of Mortgage Banking Derivative Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9954759 - Disclosure - LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES - Financial Instruments With Off-Balance Sheet Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LOANCOMMITMENTSANDOTHERRELATEDACTIVITIESFinancialInstrumentsWithOffBalanceSheetRiskDetails</Role>
      <ShortName>LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES - Financial Instruments With Off-Balance Sheet Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9954760 - Disclosure - LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/LOANCOMMITMENTSANDOTHERRELATEDACTIVITIESNarrativeDetails</Role>
      <ShortName>LOAN COMMITMENTS AND OTHER RELATED ACTIVITIES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9954761 - Disclosure - EARNINGS PER COMMON SHARE - Basic and Diluted Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/EARNINGSPERCOMMONSHAREBasicandDilutedEarningsPerShareDetails</Role>
      <ShortName>EARNINGS PER COMMON SHARE - Basic and Diluted Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="bafn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9954762 - Disclosure - EARNINGS PER COMMON SHARE - Antidilutive Securities Excluded from Calculation of Weighted Average Shares Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://bayfirstfinancial.com/role/EARNINGSPERCOMMONSHAREAntidilutiveSecuritiesExcludedfromCalculationofWeightedAverageSharesOutstandingDetails</Role>
      <ShortName>EARNINGS PER COMMON SHARE - Antidilutive Securities Excluded from Calculation of Weighted Average Shares Outstanding (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="bafn-20230630.htm">bafn-20230630.htm</File>
    <File>bafn-20230630.xsd</File>
    <File>bafn-20230630_cal.xml</File>
    <File>bafn-20230630_def.xml</File>
    <File>bafn-20230630_lab.xml</File>
    <File>bafn-20230630_pre.xml</File>
    <File>ex311-principalexecutiveof.htm</File>
    <File>ex312-principalfinancialof.htm</File>
    <File>ex321-principalexecutiveof.htm</File>
    <File>ex322-principalfinancialof.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1940">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
