<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.8.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>454</ContextCount>
  <ElementCount>527</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>99</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Documentandentityinformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>003 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>004 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>005 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>006 - Statement - Consolidated Statements of Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ConsolidatedStatementsOfShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>007 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>008 - Disclosure - Summary of Significant Accounting Policies and Activities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/SummaryOfSignificantAccountingPoliciesAndActivities</Role>
      <ShortName>Summary of Significant Accounting Policies and Activities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>009 - Disclosure - Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/InvestmentSecurities</Role>
      <ShortName>Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>010 - Disclosure - Mortgage Loans Held for Sale</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/MortgageLoansHeldForSale</Role>
      <ShortName>Mortgage Loans Held for Sale</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>011 - Disclosure - Loans and Allowance for Loan Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLosses</Role>
      <ShortName>Loans and Allowance for Loan Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>012 - Disclosure - Troubled Debt Restructurings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/TroubledDebtRestructurings</Role>
      <ShortName>Troubled Debt Restructurings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>013 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/PropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>014 - Disclosure - Other Real Estate Owned</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/OtherRealEstateOwned</Role>
      <ShortName>Other Real Estate Owned</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>015 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Deposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>016 - Disclosure - Federal Home Loan Bank Advances and Other Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowings</Role>
      <ShortName>Federal Home Loan Bank Advances and Other Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>017 - Disclosure - Junior Subordinated Debentures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/JuniorSubordinatedDebentures</Role>
      <ShortName>Junior Subordinated Debentures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>018 - Disclosure - Unused Lines of Credit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/UnusedLinesOfCredit</Role>
      <ShortName>Unused Lines of Credit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>019 - Disclosure - Derivative Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/DerivativeFinancialInstruments</Role>
      <ShortName>Derivative Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>020 - Disclosure - Fair Value Accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FairValueAccounting</Role>
      <ShortName>Fair Value Accounting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>021 - Disclosure - Earnings Per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/EarningsPerCommonShare</Role>
      <ShortName>Earnings Per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>022 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>023 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>024 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>025 - Disclosure - Financial Instruments With Off-Balance Sheet Risk</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FinancialInstrumentsWithOffBalanceSheetRisk</Role>
      <ShortName>Financial Instruments With Off-Balance Sheet Risk</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>026 - Disclosure - Employee Benefit Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/EmployeeBenefitPlan</Role>
      <ShortName>Employee Benefit Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>027 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/StockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>028 - Disclosure - Dividends</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Dividends</Role>
      <ShortName>Dividends</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>029 - Disclosure - Regulatory Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/RegulatoryMatters</Role>
      <ShortName>Regulatory Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>030 - Disclosure - Reportable Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ReportableSegments</Role>
      <ShortName>Reportable Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>031 - Disclosure - Parent Company Financial Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ParentCompanyFinancialInformation</Role>
      <ShortName>Parent Company Financial Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>032 - Disclosure - Selected Condensed Quarterly Financial Data (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Selectedcondensedquarterlyfinancialdataunaudited</Role>
      <ShortName>Selected Condensed Quarterly Financial Data (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>033 - Disclosure - Summary of Significant Accounting Policies and Activities (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Summaryofsignificantaccountingpoliciesandactivitiespolicies</Role>
      <ShortName>Summary of Significant Accounting Policies and Activities (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/SummaryOfSignificantAccountingPoliciesAndActivities</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>034 - Disclosure - Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/InvestmentSecuritiesTables</Role>
      <ShortName>Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/InvestmentSecurities</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>035 - Disclosure - Loans and Allowance for Loan Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</Role>
      <ShortName>Loans and Allowance for Loan Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLosses</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>036 - Disclosure - Troubled Debt Restructurings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/TroubledDebtRestructuringsTables</Role>
      <ShortName>Troubled Debt Restructurings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/TroubledDebtRestructurings</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>037 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/PropertyandEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/PropertyAndEquipment</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>038 - Disclosure - Other Real Estate Owned (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/OtherRealEstateOwnedTables</Role>
      <ShortName>Other Real Estate Owned (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/OtherRealEstateOwned</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>039 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/DepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/Deposits</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>040 - Disclosure - Federal Home Loan Bank Advances and Other Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowingstables</Role>
      <ShortName>Federal Home Loan Bank Advances and Other Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowings</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>041 - Disclosure - Derivative Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/DerivativeFinancialInstrumentsTables</Role>
      <ShortName>Derivative Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/DerivativeFinancialInstruments</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>042 - Disclosure - Fair Value Accounting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FairValueAccountingTables</Role>
      <ShortName>Fair Value Accounting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FairValueAccounting</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>043 - Disclosure - Earnings Per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Earningspercommonsharetables</Role>
      <ShortName>Earnings Per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/EarningsPerCommonShare</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>044 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/CommitmentsAndContingencies</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>045 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/IncomeTaxes</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>046 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/RelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/RelatedPartyTransactions</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>047 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/StockBasedCompensationtables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/StockBasedCompensation</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>048 - Disclosure - Regulatory Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/RegulatoryMattersTables</Role>
      <ShortName>Regulatory Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/RegulatoryMatters</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>049 - Disclosure - Reportable Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ReportableSegmentsTables</Role>
      <ShortName>Reportable Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/ReportableSegments</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>050 - Disclosure - Parent Company Financial Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ParentCompanyFinancialInformationTables</Role>
      <ShortName>Parent Company Financial Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/ParentCompanyFinancialInformation</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>051 - Disclosure - Selected Condensed Quarterly Financial Data (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Selectedcondensedquarterlyfinancialdataunauditedtables</Role>
      <ShortName>Selected Condensed Quarterly Financial Data (Unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/Selectedcondensedquarterlyfinancialdataunaudited</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>052 - Disclosure - Summary of Significant Accounting Policies and Activities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/SummaryOfSignificantAccountingPoliciesAndActivitiesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies and Activities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/Summaryofsignificantaccountingpoliciesandactivitiespolicies</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>053 - Disclosure - Investment Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/InvestmentSecuritiesDetails</Role>
      <ShortName>Investment Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>054 - Disclosure - Investment Securities (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/InvestmentSecuritiesDetails1</Role>
      <ShortName>Investment Securities (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>055 - Disclosure - Investment Securities (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/InvestmentSecuritiesDetails2</Role>
      <ShortName>Investment Securities (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>056 - Disclosure - Investment Securities (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/InvestmentSecuritiesDetails3</Role>
      <ShortName>Investment Securities (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>057 - Disclosure - Investment Securities (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Investmentsecuritiesdetailstextual</Role>
      <ShortName>Investment Securities (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>058 - Disclosure - Mortgage Loans Held for Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/MortgageLoansHeldForSaleDetails</Role>
      <ShortName>Mortgage Loans Held for Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/MortgageLoansHeldForSale</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>059 - Disclosure - Loans and Allowance for Loan Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>060 - Disclosure - Loans and Allowance for Loan Losses (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Loansandallowanceforloanlossesdetails1</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>061 - Disclosure - Loans and Allowance for Loan Losses (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails2</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>062 - Disclosure - Loans and Allowance for Loan Losses (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails3</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>063 - Disclosure - Loans and Allowance for Loan Losses (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails4</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>064 - Disclosure - Loans and Allowance for Loan Losses (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails5</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>065 - Disclosure - Loans and Allowance for Loan Losses (Details 6)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails6</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 6)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>066 - Disclosure - Loans and Allowance for Loan Losses (Details 7)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails7</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 7)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>067 - Disclosure - Loans and Allowance for Loan Losses (Details 8)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails8</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 8)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>068 - Disclosure - Loans and Allowance for Loan Losses (Details 9)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails9</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 9)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>069 - Disclosure - Loans and Allowance for Loan Losses (Details 10)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails10</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 10)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>070 - Disclosure - Loans and Allowance for Loan Losses (Details 11)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/LoansAndAllowanceForLoanLossesDetails11</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details 11)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>071 - Disclosure - Loans and Allowance for Loan Losses (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Loansandallowanceforloanlossesdetailstextual</Role>
      <ShortName>Loans and Allowance for Loan Losses (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/LoansandAllowanceforLoanLossesTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>072 - Disclosure - Troubled Debt Restructurings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/TroubledDebtRestructuringsDetails</Role>
      <ShortName>Troubled Debt Restructurings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/TroubledDebtRestructuringsTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>073 - Disclosure - Troubled Debt Restructurings (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Troubleddebtrestructuringsdetailstextual</Role>
      <ShortName>Troubled Debt Restructurings (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/TroubledDebtRestructuringsTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>074 - Disclosure - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/PropertyandEquipmentDetails</Role>
      <ShortName>Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>075 - Disclosure - Property and Equipment (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/PropertyandEquipmentDetails1</Role>
      <ShortName>Property and Equipment (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>076 - Disclosure - Property and Equipment (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/PropertyAndEquipmentDetailsTextual</Role>
      <ShortName>Property and Equipment (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>077 - Disclosure - Other Real Estate Owned (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/OtherRealEstateOwnedDetails</Role>
      <ShortName>Other Real Estate Owned (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/OtherRealEstateOwnedTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>078 - Disclosure - Other Real Estate Owned (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/OtherRealEstateOwnedDetailsTextual</Role>
      <ShortName>Other Real Estate Owned (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/OtherRealEstateOwnedTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>079 - Disclosure - Deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/DepositsDetails</Role>
      <ShortName>Deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/DepositsTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>080 - Disclosure - Deposits (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Depositsdetails1</Role>
      <ShortName>Deposits (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/DepositsTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>081 - Disclosure - Deposits (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Depositsdetailstextual</Role>
      <ShortName>Deposits (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/DepositsTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>082 - Disclosure - Federal Home Loan Bank Advances and Other Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowingsdetails</Role>
      <ShortName>Federal Home Loan Bank Advances and Other Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowingstables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>083 - Disclosure - Federal Home Loan Bank Advances and Other Borrowings (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowingsdetails1</Role>
      <ShortName>Federal Home Loan Bank Advances and Other Borrowings (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowingstables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>084 - Disclosure - Federal Home Loan Bank Advances and Other Borrowings (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowingsdetailstextual</Role>
      <ShortName>Federal Home Loan Bank Advances and Other Borrowings (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FederalHomeLoanBankAdvancesAndOtherBorrowingstables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>085 - Disclosure - Junior Subordinated Debentures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/JuniorSubordinatedDebenturesDetails</Role>
      <ShortName>Junior Subordinated Debentures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/JuniorSubordinatedDebentures</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>086 - Disclosure - Unused Lines of Credit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/UnusedLinesofCreditDetails</Role>
      <ShortName>Unused Lines of Credit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/UnusedLinesOfCredit</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>087 - Disclosure - Derivative Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/DerivativeFinancialInstrumentsDetails</Role>
      <ShortName>Derivative Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/DerivativeFinancialInstrumentsTables</ParentRole>
      <Position>87</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>088 - Disclosure - Fair Value Accounting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FairValueAccountingDetails</Role>
      <ShortName>Fair Value Accounting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FairValueAccountingTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>089 - Disclosure - Fair Value Accounting (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FairValueAccountingDetails1</Role>
      <ShortName>Fair Value Accounting (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FairValueAccountingTables</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>090 - Disclosure - Fair Value Accounting (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Fairvalueaccountingdetails2</Role>
      <ShortName>Fair Value Accounting (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FairValueAccountingTables</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>091 - Disclosure - Fair Value Accounting (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Fairvalueaccountingdetails3</Role>
      <ShortName>Fair Value Accounting (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FairValueAccountingTables</ParentRole>
      <Position>91</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>092 - Disclosure - Fair Value Accounting (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Fairvalueaccountingdetailstextual</Role>
      <ShortName>Fair Value Accounting (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FairValueAccountingTables</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>093 - Disclosure - Earnings Per Common Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/EarningsPerCommonShareDetails</Role>
      <ShortName>Earnings Per Common Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/Earningspercommonsharetables</ParentRole>
      <Position>93</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>094 - Disclosure - Earnings Per Common Share (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/EarningsPerCommonSharedetailstextual</Role>
      <ShortName>Earnings Per Common Share (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/Earningspercommonsharetables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>095 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>096 - Disclosure - Commitments and Contingencies (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/CommitmentsAndContingenciesDetailsTextual</Role>
      <ShortName>Commitments and Contingencies (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/CommitmentsandContingenciesTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>097 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/IncomeTaxesTables</ParentRole>
      <Position>97</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>098 - Disclosure - Income Taxes (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/IncomeTaxesDetails1</Role>
      <ShortName>Income Taxes (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/IncomeTaxesTables</ParentRole>
      <Position>98</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>099 - Disclosure - Income Taxes (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/IncomeTaxesDetails2</Role>
      <ShortName>Income Taxes (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/IncomeTaxesTables</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>100 - Disclosure - Income Taxes (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/IncomeTaxesDetailsTextual</Role>
      <ShortName>Income Taxes (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/IncomeTaxesTables</ParentRole>
      <Position>100</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>101 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/RelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>101</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>102 - Disclosure - Related Party Transactions (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/RelatedPartyTransactionsDetailsTextual</Role>
      <ShortName>Related Party Transactions (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>102</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>103 - Disclosure - Financial Instruments With Off-Balance Sheet Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/FinancialInstrumentsWithOffBalanceSheetRiskDetails</Role>
      <ShortName>Financial Instruments With Off-Balance Sheet Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/FinancialInstrumentsWithOffBalanceSheetRisk</ParentRole>
      <Position>103</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>104 - Disclosure - Employee Benefit Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/EmployeeBenefitPlanDetails</Role>
      <ShortName>Employee Benefit Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/EmployeeBenefitPlan</ParentRole>
      <Position>104</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>105 - Disclosure - Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/StockBasedCompensationDetails</Role>
      <ShortName>Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/StockBasedCompensationtables</ParentRole>
      <Position>105</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>106 - Disclosure - Stock-Based Compensation (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/StockBasedCompensationDetails1</Role>
      <ShortName>Stock-Based Compensation (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/StockBasedCompensationtables</ParentRole>
      <Position>106</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>107 - Disclosure - Stock-Based Compensation (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/StockBasedCompensationDetails2</Role>
      <ShortName>Stock-Based Compensation (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/StockBasedCompensationtables</ParentRole>
      <Position>107</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>108 - Disclosure - Stock-Based Compensation (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/StockBasedCompensationDetails3</Role>
      <ShortName>Stock-Based Compensation (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/StockBasedCompensationtables</ParentRole>
      <Position>108</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>109 - Disclosure - Stock-Based Compensation (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/StockBasedCompensationDetailsTextual</Role>
      <ShortName>Stock-Based Compensation (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/StockBasedCompensationtables</ParentRole>
      <Position>109</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>110 - Disclosure - Regulatory Matters (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/RegulatoryMattersDetails</Role>
      <ShortName>Regulatory Matters (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/RegulatoryMattersTables</ParentRole>
      <Position>110</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>111 - Disclosure - Reportable Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ReportableSegmentsDetails</Role>
      <ShortName>Reportable Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/ReportableSegmentsTables</ParentRole>
      <Position>111</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>112 - Disclosure - Reportable Segments (Details Textual)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ReportableSegmentsDetailsTextual</Role>
      <ShortName>Reportable Segments (Details Textual)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/ReportableSegmentsTables</ParentRole>
      <Position>112</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>113 - Disclosure - Parent Company Financial Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/ParentCompanyFinancialInformationDetails</Role>
      <ShortName>Parent Company Financial Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/ParentCompanyFinancialInformationTables</ParentRole>
      <Position>113</Position>
    </Report>
    <Report instance="sfst-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>114 - Disclosure - Selected Condensed Quarterly Financial Data (Unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.southernfirst.com/role/Selectedcondensedquarterlyfinancialdataunauditeddetails</Role>
      <ShortName>Selected Condensed Quarterly Financial Data (Unaudited) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.southernfirst.com/role/Selectedcondensedquarterlyfinancialdataunauditedtables</ParentRole>
      <Position>114</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>sfst-20171231.xml</File>
    <File>sfst-20171231.xsd</File>
    <File>sfst-20171231_cal.xml</File>
    <File>sfst-20171231_def.xml</File>
    <File>sfst-20171231_lab.xml</File>
    <File>sfst-20171231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2014-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/invest/2013-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
