<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>572</ContextCount>
  <ElementCount>608</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>148</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Consolidated Balance Sheets (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/StatementConsolidatedBalanceSheetsParentheticals</Role>
      <ShortName>Consolidated Balance Sheets (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/StatementConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00500 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies (Imported)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesImported</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies (Imported)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecurities</Role>
      <ShortName>Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Loans and The Allowance for Loan Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLosses</Role>
      <ShortName>Loans and The Allowance for Loan Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Premises and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipment</Role>
      <ShortName>Premises and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureDeposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureBorrowings</Role>
      <ShortName>Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Employee Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlans</Role>
      <ShortName>Employee Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Other Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureOtherIncome</Role>
      <ShortName>Other Income</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureCommitments</Role>
      <ShortName>Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Regulatory Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureRegulatoryMatters</Role>
      <ShortName>Regulatory Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11401 - Disclosure - Fair Value Measurement and Fair Values of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstruments</Role>
      <ShortName>Fair Value Measurement and Fair Values of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11501 - Disclosure - FSB Bancorp, Inc. (Parent Company Only) Financial Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyFinancialInformation</Role>
      <ShortName>FSB Bancorp, Inc. (Parent Company Only) Financial Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>20102 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesImported</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>30103 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesImported</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>30203 - Disclosure - Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesTables</Role>
      <ShortName>Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureSecurities</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Loans and The Allowance for Loan Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesTables</Role>
      <ShortName>Loans and The Allowance for Loan Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLosses</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Premises and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentTables</Role>
      <ShortName>Premises and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipment</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureDepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureDeposits</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureBorrowingsTables</Role>
      <ShortName>Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureBorrowings</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>30704 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>30803 - Disclosure - Accumulated Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureAccumulatedOtherComprehensiveIncomeLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>30903 - Disclosure - Employee Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlansTables</Role>
      <ShortName>Employee Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlans</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>31004 - Disclosure - Other Income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureOtherIncomeTables</Role>
      <ShortName>Other Income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureOtherIncome</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>31203 - Disclosure - Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureCommitmentsTables</Role>
      <ShortName>Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureCommitments</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>31303 - Disclosure - Regulatory Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureRegulatoryMattersTables</Role>
      <ShortName>Regulatory Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureRegulatoryMatters</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>31403 - Disclosure - Fair Value Measurement and Fair Values of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value Measurement and Fair Values of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstruments</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>31503 - Disclosure - FSB Bancorp, Inc. (Parent Company Only) Financial Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyFinancialInformationTables</Role>
      <ShortName>FSB Bancorp, Inc. (Parent Company Only) Financial Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyFinancialInformation</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies - Comprehensive income (loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesComprehensiveIncomeLossDetails</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies - Comprehensive income (loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>40102 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies - Basic and diluted earnings per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies - Basic and diluted earnings per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40103 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40104 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40105 - Disclosure - Nature of Operations and Summary of Significant Accounting Policies - Additional information (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureNatureOfOperationsAndSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails2</Role>
      <ShortName>Nature of Operations and Summary of Significant Accounting Policies - Additional information (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Securities - Available for sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesAvailableForSaleDetails</Role>
      <ShortName>Securities - Available for sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40202 - Disclosure - Securities - Held to maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesHeldToMaturityDetails</Role>
      <ShortName>Securities - Held to maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40203 - Disclosure - Securities - Contractual maturity of debt securities of AFS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesContractualMaturityOfDebtSecuritiesOfAfsDetails</Role>
      <ShortName>Securities - Contractual maturity of debt securities of AFS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40204 - Disclosure - Securities - Contractual maturity of debt securities of HTM (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesContractualMaturityOfDebtSecuritiesOfHtmDetails</Role>
      <ShortName>Securities - Contractual maturity of debt securities of HTM (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40205 - Disclosure - Securities - Gross unrealized loss position for investment securities - AFS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesGrossUnrealizedLossPositionForInvestmentSecuritiesAfsDetails</Role>
      <ShortName>Securities - Gross unrealized loss position for investment securities - AFS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40206 - Disclosure - Securities - Gross unrealised losses on investment securities - HTM (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesGrossUnrealisedLossesOnInvestmentSecuritiesHtmDetails</Role>
      <ShortName>Securities - Gross unrealised losses on investment securities - HTM (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40207 - Disclosure - Securities - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureSecuritiesAdditionalInformationDetails</Role>
      <ShortName>Securities - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Loans and The Allowance for Loan Losses - Major classifications of loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesMajorClassificationsOfLoansDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Major classifications of loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Loans and The Allowance for Loan Losses - Allowance for loan losses allocated by loan class and the activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesAllowanceForLoanLossesAllocatedByLoanClassAndActivityDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Allowance for loan losses allocated by loan class and the activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Loans and The Allowance for Loan Losses - Impaired loans information by portfolio class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesImpairedLoansInformationByPortfolioClassDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Impaired loans information by portfolio class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40304 - Disclosure - Loans and The Allowance for Loan Losses - Risk category of loans by class (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesRiskCategoryOfLoansByClassDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Risk category of loans by class (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40305 - Disclosure - Loans and The Allowance for Loan Losses - Analysis of the age of the loan delinquencies by type and by amount past due (Details )</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesAnalysisOfAgeOfLoanDelinquenciesByTypeAndByAmountPastDueDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Analysis of the age of the loan delinquencies by type and by amount past due (Details )</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40306 - Disclosure - Loans and The Allowance for Loan Losses - Nonaccrual loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesNonaccrualLoansDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Nonaccrual loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40307 - Disclosure - Loans and The Allowance for Loan Losses - Foreclosed real estate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesForeclosedRealEstateDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Foreclosed real estate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40308 - Disclosure - Loans and The Allowance for Loan Losses - Activity in valuation allowance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesActivityInValuationAllowanceDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Activity in valuation allowance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40309 - Disclosure - Loans and The Allowance for Loan Losses - Expenses related to foreclosed assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesExpensesRelatedToForeclosedAssetsDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Expenses related to foreclosed assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40310 - Disclosure - Loans and The Allowance for Loan Losses - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureLoansAndAllowanceForLoanLossesAdditionalInformationDetails</Role>
      <ShortName>Loans and The Allowance for Loan Losses - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Premises and Equipment - (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentDetails</Role>
      <ShortName>Premises and Equipment - (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40402 - Disclosure - Premises and Equipment - Components of the lease expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentComponentsOfLeaseExpenseDetails</Role>
      <ShortName>Premises and Equipment - Components of the lease expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40403 - Disclosure - Premises and Equipment - Supplemental cash flow information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentSupplementalCashFlowInformationDetails</Role>
      <ShortName>Premises and Equipment - Supplemental cash flow information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>40404 - Disclosure - Premises and Equipment - Supplemental consolidated balance sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentSupplementalConsolidatedBalanceSheetDetails</Role>
      <ShortName>Premises and Equipment - Supplemental consolidated balance sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>40405 - Disclosure - Premises and Equipment - Operating lease liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentOperatingLeaseLiabilitiesDetails</Role>
      <ShortName>Premises and Equipment - Operating lease liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>40406 - Disclosure - Premises and Equipment - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosurePremisesAndEquipmentAdditionalInformationDetails</Role>
      <ShortName>Premises and Equipment - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Deposits - Components of deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureDepositsComponentsOfDepositsDetails</Role>
      <ShortName>Deposits - Components of deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>40502 - Disclosure - Deposits - Individual retirement accounts and certificates of deposit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureDepositsIndividualRetirementAccountsAndCertificatesOfDepositDetails</Role>
      <ShortName>Deposits - Individual retirement accounts and certificates of deposit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>40503 - Disclosure - Deposits - Interest expense on deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureDepositsInterestExpenseOnDepositsDetails</Role>
      <ShortName>Deposits - Interest expense on deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>40504 - Disclosure - Deposits - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureDepositsAdditionalInformationDetails</Role>
      <ShortName>Deposits - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureBorrowingsDetails</Role>
      <ShortName>Borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureBorrowingsTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>40602 - Disclosure - Borrowings - Contractual maturities of all FHLB borrowings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureBorrowingsContractualMaturitiesOfAllFhlbBorrowingsDetails</Role>
      <ShortName>Borrowings - Contractual maturities of all FHLB borrowings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>40603 - Disclosure - Borrowings - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureBorrowingsAdditionalInformationDetails</Role>
      <ShortName>Borrowings - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Income Taxes - Provision for income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureIncomeTaxesProvisionForIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Provision for income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>40702 - Disclosure - Income Taxes - Differences between income tax expense to statutory federal tax at a rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureIncomeTaxesDifferencesBetweenIncomeTaxExpenseToStatutoryFederalTaxAtRateDetails</Role>
      <ShortName>Income Taxes - Differences between income tax expense to statutory federal tax at a rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>40703 - Disclosure - Income Taxes - Deferred income tax assets and liabilities resulting from temporary differences (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureIncomeTaxesDeferredIncomeTaxAssetsAndLiabilitiesResultingFromTemporaryDifferencesDetails</Role>
      <ShortName>Income Taxes - Deferred income tax assets and liabilities resulting from temporary differences (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>40704 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Accumulated Other Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureAccumulatedOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Employee Benefit Plans - Stock option activity and related information for its option plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlansStockOptionActivityAndRelatedInformationForItsOptionPlansDetails</Role>
      <ShortName>Employee Benefit Plans - Stock option activity and related information for its option plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>40902 - Disclosure - Employee Benefit Plans - Stock option activity and option plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlansStockOptionActivityAndOptionPlansDetails</Role>
      <ShortName>Employee Benefit Plans - Stock option activity and option plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>40903 - Disclosure - Employee Benefit Plans - Estimate fair value of stock-based awards of weighted average assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlansEstimateFairValueOfStockBasedAwardsOfWeightedAverageAssumptionsDetails</Role>
      <ShortName>Employee Benefit Plans - Estimate fair value of stock-based awards of weighted average assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>40904 - Disclosure - Employee Benefit Plans - Changes in unvested shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlansChangesInUnvestedSharesDetails</Role>
      <ShortName>Employee Benefit Plans - Changes in unvested shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>40905 - Disclosure - Employee Benefit Plans - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlansAdditionalInformationDetails</Role>
      <ShortName>Employee Benefit Plans - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>40906 - Disclosure - Employee Benefit Plans - Additional Information (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureEmployeeBenefitPlansAdditionalInformationDetails2</Role>
      <ShortName>Employee Benefit Plans - Additional Information (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Other income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureOtherIncomeDetails</Role>
      <ShortName>Other income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureRelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Commitments - Non-performance by the other party to the financial instrument for commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureCommitmentsNonPerformanceByOtherPartyToFinancialInstrumentForCommitmentsDetails</Role>
      <ShortName>Commitments - Non-performance by the other party to the financial instrument for commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>41202 - Disclosure - Commitments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureCommitmentsAdditionalInformationDetails</Role>
      <ShortName>Commitments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>41301 - Disclosure - Regulatory Matters (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureRegulatoryMattersDetails</Role>
      <ShortName>Regulatory Matters (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureRegulatoryMattersTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Fair Value Measurement and Fair Values of Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstrumentsDetails</Role>
      <ShortName>Fair Value Measurement and Fair Values of Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstrumentsTables</ParentRole>
      <Position>89</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>41402 - Disclosure - Fair Value Measurement and Fair Values of Financial Instruments - Fair value on a nonrecurring basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstrumentsFairValueOnNonrecurringBasisDetails</Role>
      <ShortName>Fair Value Measurement and Fair Values of Financial Instruments - Fair value on a nonrecurring basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>41403 - Disclosure - Fair Value Measurement and Fair Values of Financial Instruments - Additional quantitative information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstrumentsAdditionalQuantitativeInformationDetails</Role>
      <ShortName>Fair Value Measurement and Fair Values of Financial Instruments - Additional quantitative information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>41404 - Disclosure - Fair Value Measurement and Fair Values of Financial Instruments - Carrying amounts and estimated fair values of the financial instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstrumentsCarryingAmountsAndEstimatedFairValuesOfFinancialInstrumentsDetails</Role>
      <ShortName>Fair Value Measurement and Fair Values of Financial Instruments - Carrying amounts and estimated fair values of the financial instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>41405 - Disclosure - Fair Value Measurement and Fair Values of Financial Instruments - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFairValueMeasurementAndFairValuesOfFinancialInstrumentsAdditionalInformationDetails</Role>
      <ShortName>Fair Value Measurement and Fair Values of Financial Instruments - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>41501 - Disclosure - FSB Bancorp, Inc. (Parent Company Only) (Schedule of Balance Sheets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyScheduleOfBalanceSheetsDetails</Role>
      <ShortName>FSB Bancorp, Inc. (Parent Company Only) (Schedule of Balance Sheets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyFinancialInformationTables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>41502 - Disclosure - FSB Bancorp, Inc. (Parent Company Only) (Schedule of Statements of Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyScheduleOfStatementsOfIncomeDetails</Role>
      <ShortName>FSB Bancorp, Inc. (Parent Company Only) (Schedule of Statements of Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyFinancialInformationTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="fsbc-20191231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>41503 - Disclosure - FSB Bancorp, Inc. (Parent Company Only) (Schedule of Statements of Cash Flows) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyScheduleOfStatementsOfCashFlowsDetails</Role>
      <ShortName>FSB Bancorp, Inc. (Parent Company Only) (Schedule of Statements of Cash Flows) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.fairportsavingsbank.com/role/DisclosureFsbBancorpIncParentCompanyOnlyFinancialInformationTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>fsbc-20191231.xml</File>
    <File>fsbc-20191231.xsd</File>
    <File>fsbc-20191231_cal.xml</File>
    <File>fsbc-20191231_def.xml</File>
    <File>fsbc-20191231_lab.xml</File>
    <File>fsbc-20191231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
