<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.8.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>295</ContextCount>
  <ElementCount>533</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>69</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1001501 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1002000 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003000 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1003501 - Statement - Consolidated Statements of Comprehensive Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1004000 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1005000 - Statement - Consolidated Statements of Changes in Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1005501 - Statement - Consolidated Statements of Changes in Shareholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Nature of Banking Activities and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/NatureOfBankingActivitiesAndSignificantAccountingPolicies</Role>
      <ShortName>Nature of Banking Activities and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/Securities</Role>
      <ShortName>Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2110100 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/Loans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Allowance for Loan Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AllowanceForLoanLosses</Role>
      <ShortName>Allowance for Loan Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Other Real Estate Owned</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/OtherRealEstateOwned</Role>
      <ShortName>Other Real Estate Owned</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Premises and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/PremisesAndEquipment</Role>
      <ShortName>Premises and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2114100 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/Deposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2115100 - Disclosure - Other Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/OtherBorrowings</Role>
      <ShortName>Other Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2116100 - Disclosure - Subordinated Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SubordinatedDebt</Role>
      <ShortName>Subordinated Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2117100 - Disclosure - Junior Subordinated Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/JuniorSubordinatedDebt</Role>
      <ShortName>Junior Subordinated Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2118100 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2119100 - Disclosure - Funds Restrictions and Reserve Balance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FundsRestrictionsAndReserveBalance</Role>
      <ShortName>Funds Restrictions and Reserve Balance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2120100 - Disclosure - Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlans</Role>
      <ShortName>Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2121100 - Disclosure - Earnings per Common Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/EarningsPerCommonShare</Role>
      <ShortName>Earnings per Common Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2122100 - Disclosure - Commitments and Unfunded Credits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/CommitmentsAndUnfundedCredits</Role>
      <ShortName>Commitments and Unfunded Credits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2123100 - Disclosure - Transactions with Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/TransactionsWithRelatedParties</Role>
      <ShortName>Transactions with Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2124100 - Disclosure - Lease Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LeaseCommitments</Role>
      <ShortName>Lease Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2125100 - Disclosure - Dividend Reinvestment Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/DividendReinvestmentPlan</Role>
      <ShortName>Dividend Reinvestment Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2126100 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2127100 - Disclosure - Regulatory Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/RegulatoryMatters</Role>
      <ShortName>Regulatory Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2128100 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2130100 - Disclosure - Stock Compensation Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/StockCompensationPlans</Role>
      <ShortName>Stock Compensation Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2132100 - Disclosure - Parent Company Only Financial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ParentCompanyOnlyFinancialStatements</Role>
      <ShortName>Parent Company Only Financial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2208201 - Disclosure - Nature of Banking Activities and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/NatureOfBankingActivitiesAndSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Nature of Banking Activities and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/NatureOfBankingActivitiesAndSignificantAccountingPolicies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2309301 - Disclosure - Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SecuritiesTables</Role>
      <ShortName>Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/Securities</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2310301 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/Loans</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2311301 - Disclosure - Allowance for Loan Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AllowanceForLoanLossesTables</Role>
      <ShortName>Allowance for Loan Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/AllowanceForLoanLosses</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Other Real Estate Owned (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/OtherRealEstateOwnedTables</Role>
      <ShortName>Other Real Estate Owned (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/OtherRealEstateOwned</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Premises and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/PremisesAndEquipmentTables</Role>
      <ShortName>Premises and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/PremisesAndEquipment</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2314301 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/DepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/Deposits</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2318301 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/IncomeTaxes</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2320301 - Disclosure - Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansTables</Role>
      <ShortName>Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/BenefitPlans</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2321301 - Disclosure - Earnings per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/EarningsPerCommonShareTables</Role>
      <ShortName>Earnings per Common Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/EarningsPerCommonShare</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2322301 - Disclosure - Commitments and Unfunded Credits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/CommitmentsAndUnfundedCreditsTables</Role>
      <ShortName>Commitments and Unfunded Credits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/CommitmentsAndUnfundedCredits</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2324301 - Disclosure - Lease Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LeaseCommitmentsTables</Role>
      <ShortName>Lease Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/LeaseCommitments</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2326301 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/FairValueMeasurements</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2327301 - Disclosure - Regulatory Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/RegulatoryMattersTables</Role>
      <ShortName>Regulatory Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/RegulatoryMatters</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2328301 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/AccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2330301 - Disclosure - Stock Compensation Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/StockCompensationPlansTables</Role>
      <ShortName>Stock Compensation Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/StockCompensationPlans</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2332301 - Disclosure - Parent Company Only Financial Statements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ParentCompanyOnlyFinancialStatementsTables</Role>
      <ShortName>Parent Company Only Financial Statements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.fbvirginia.com/role/ParentCompanyOnlyFinancialStatements</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Nature of Banking Activities and Significant Accounting policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/NatureOfBankingActivitiesAndSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Nature of Banking Activities and Significant Accounting policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2409402 - Disclosure - Securities - Summary of Amortized Costs and Fair Values of Securities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SecuritiesSummaryOfAmortizedCostsAndFairValuesOfSecuritiesDetail</Role>
      <ShortName>Securities - Summary of Amortized Costs and Fair Values of Securities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2409403 - Disclosure - Securities - Summary of Investments in an Unrealized Loss Position that were Temporarily Impaired (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SecuritiesSummaryOfInvestmentsInUnrealizedLossPositionThatWereTemporarilyImpairedDetail</Role>
      <ShortName>Securities - Summary of Investments in an Unrealized Loss Position that were Temporarily Impaired (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2409404 - Disclosure - Securities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SecuritiesAdditionalInformationDetail</Role>
      <ShortName>Securities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2409405 - Disclosure - Securities - Amortized Cost and Fair Value of Securities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SecuritiesAmortizedCostAndFairValueOfSecuritiesDetail</Role>
      <ShortName>Securities - Amortized Cost and Fair Value of Securities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2409406 - Disclosure - Securities - Composition of Restricted Securities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SecuritiesCompositionOfRestrictedSecuritiesDetail</Role>
      <ShortName>Securities - Composition of Restricted Securities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2410402 - Disclosure - Loans - Summary of Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LoansSummaryOfLoansDetail</Role>
      <ShortName>Loans - Summary of Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2410403 - Disclosure - Loans - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LoansAdditionalInformationDetail</Role>
      <ShortName>Loans - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2410404 - Disclosure - Loans - Summary of Loan Classes and an Aging of Past Due Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LoansSummaryOfLoanClassesAndAgingOfPastDueLoansDetail</Role>
      <ShortName>Loans - Summary of Loan Classes and an Aging of Past Due Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2410405 - Disclosure - Loans - Analysis of the Credit Risk Profile of Each Loan Class (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LoansAnalysisOfCreditRiskProfileOfEachLoanClassDetail</Role>
      <ShortName>Loans - Analysis of the Credit Risk Profile of Each Loan Class (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2411402 - Disclosure - Allowance for Loan Losses - Allowance by Impairment Methodology and Loans by Impairment Methodology (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AllowanceForLoanLossesAllowanceByImpairmentMethodologyAndLoansByImpairmentMethodologyDetail</Role>
      <ShortName>Allowance for Loan Losses - Allowance by Impairment Methodology and Loans by Impairment Methodology (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2411403 - Disclosure - Allowance for Loan losses - Impaired Loans and Related Allowance (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AllowanceForLoanLossesImpairedLoansAndRelatedAllowanceDetail</Role>
      <ShortName>Allowance for Loan losses - Impaired Loans and Related Allowance (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2411404 - Disclosure - Allowance for Loan Losses - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AllowanceForLoanLossesAdditionalInformationDetail</Role>
      <ShortName>Allowance for Loan Losses - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Other Real Estate Owned - Summary of Changes in the Balance for OREO (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/OtherRealEstateOwnedSummaryOfChangesInBalanceForOreoDetail</Role>
      <ShortName>Other Real Estate Owned - Summary of Changes in the Balance for OREO (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2412403 - Disclosure - Other Real Estate Owned - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/OtherRealEstateOwnedAdditionalInformationDetail</Role>
      <ShortName>Other Real Estate Owned - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2412404 - Disclosure - Other Real Estate Owned - Summary of Changes in the Valuation Allowance (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/OtherRealEstateOwnedSummaryOfChangesInValuationAllowanceDetail</Role>
      <ShortName>Other Real Estate Owned - Summary of Changes in the Valuation Allowance (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Premises and Equipment - Summary of Premises and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/PremisesAndEquipmentSummaryOfPremisesAndEquipmentDetail</Role>
      <ShortName>Premises and Equipment - Summary of Premises and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2413403 - Disclosure - Premises and Equipment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/PremisesAndEquipmentAdditionalInformationDetail</Role>
      <ShortName>Premises and Equipment - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2414402 - Disclosure - Deposits - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/DepositsAdditionalInformationDetail</Role>
      <ShortName>Deposits - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2414403 - Disclosure - Deposits - Scheduled Maturities of Time Deposits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/DepositsScheduledMaturitiesOfTimeDepositsDetail</Role>
      <ShortName>Deposits - Scheduled Maturities of Time Deposits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2415401 - Disclosure - Other Borrowings - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/OtherBorrowingsAdditionalInformationDetail</Role>
      <ShortName>Other Borrowings - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2416401 - Disclosure - Subordinated Debt - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/SubordinatedDebtAdditionalInformationDetail</Role>
      <ShortName>Subordinated Debt - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2417401 - Disclosure - Junior Subordinated Debt - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/JuniorSubordinatedDebtAdditionalInformationDetail</Role>
      <ShortName>Junior Subordinated Debt - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2418402 - Disclosure - Income Taxes - Net Deferred Tax Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/IncomeTaxesNetDeferredTaxAssetsDetail</Role>
      <ShortName>Income Taxes - Net Deferred Tax Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2418403 - Disclosure - Income Taxes - Income Tax Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/IncomeTaxesIncomeTaxExpenseDetail</Role>
      <ShortName>Income Taxes - Income Tax Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2418404 - Disclosure - Income Taxes - Income Tax Expense Differs from the Amount of Income Tax Determined by Applying the U.S. Federal Income Tax Rate to Pretax Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/IncomeTaxesIncomeTaxExpenseDiffersFromAmountOfIncomeTaxDeterminedByApplyingUSFederalIncomeTaxRateToPretaxIncomeDetail</Role>
      <ShortName>Income Taxes - Income Tax Expense Differs from the Amount of Income Tax Determined by Applying the U.S. Federal Income Tax Rate to Pretax Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2419401 - Disclosure - Funds Restrictions and Reserve Balance - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FundsRestrictionsAndReserveBalanceAdditionalInformationDetail</Role>
      <ShortName>Funds Restrictions and Reserve Balance - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2420402 - Disclosure - Benefit Plans - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansAdditionalInformationDetail</Role>
      <ShortName>Benefit Plans - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2420403 - Disclosure - Benefit Plans - Schedule of Changes in Plan Benefit Obligation and Fair Value of Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansScheduleOfChangesInPlanBenefitObligationAndFairValueOfAssetsDetail</Role>
      <ShortName>Benefit Plans - Schedule of Changes in Plan Benefit Obligation and Fair Value of Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2420404 - Disclosure - Benefit Plans - Amounts Recognized in Accumulated Other Comprehensive Loss, Net of Tax (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansAmountsRecognizedInAccumulatedOtherComprehensiveLossNetOfTaxDetail</Role>
      <ShortName>Benefit Plans - Amounts Recognized in Accumulated Other Comprehensive Loss, Net of Tax (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2420405 - Disclosure - Benefit Plans - Weighted Average Assumptions Used to Determine Benefit Obligation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansWeightedAverageAssumptionsUsedToDetermineBenefitObligationDetail</Role>
      <ShortName>Benefit Plans - Weighted Average Assumptions Used to Determine Benefit Obligation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2420406 - Disclosure - Benefit Plans - Components of Net Periodic Benefit Cost (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansComponentsOfNetPeriodicBenefitCostDetail</Role>
      <ShortName>Benefit Plans - Components of Net Periodic Benefit Cost (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2420407 - Disclosure - Benefit Plans - Other Changes in Plan Assets and Benefit Obligations Recognized in Accumulated Other Comprehensive (Income) Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansOtherChangesInPlanAssetsAndBenefitObligationsRecognizedInAccumulatedOtherComprehensiveIncomeLossDetail</Role>
      <ShortName>Benefit Plans - Other Changes in Plan Assets and Benefit Obligations Recognized in Accumulated Other Comprehensive (Income) Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2420408 - Disclosure - Benefit Plans - Weighted Average Assumptions Used to Determine Net Periodic Benefit Cost (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansWeightedAverageAssumptionsUsedToDetermineNetPeriodicBenefitCostDetail</Role>
      <ShortName>Benefit Plans - Weighted Average Assumptions Used to Determine Net Periodic Benefit Cost (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2420409 - Disclosure - Benefit Plans - Schedule of Pension Plan's Weighted-Average Asset Allocations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansScheduleOfPensionPlansWeightedAverageAssetAllocationsDetail</Role>
      <ShortName>Benefit Plans - Schedule of Pension Plan's Weighted-Average Asset Allocations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2420410 - Disclosure - Benefit Plans - Schedule of Fair Value Hierarchy, the Company's Pension Plan Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/BenefitPlansScheduleOfFairValueHierarchyCompanysPensionPlanAssetsDetail</Role>
      <ShortName>Benefit Plans - Schedule of Fair Value Hierarchy, the Company's Pension Plan Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2421402 - Disclosure - Earnings per Common Share - Computation of Basic and Diluted Earnings per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetail</Role>
      <ShortName>Earnings per Common Share - Computation of Basic and Diluted Earnings per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2422402 - Disclosure - Commitments and Unfunded Credits - Financial Instruments Representing Credit Risk (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/CommitmentsAndUnfundedCreditsFinancialInstrumentsRepresentingCreditRiskDetail</Role>
      <ShortName>Commitments and Unfunded Credits - Financial Instruments Representing Credit Risk (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2422403 - Disclosure - Commitments and Unfunded Credits - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/CommitmentsAndUnfundedCreditsAdditionalInformationDetail</Role>
      <ShortName>Commitments and Unfunded Credits - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2423401 - Disclosure - Transactions with Related Parties - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/TransactionsWithRelatedPartiesAdditionalInformationDetail</Role>
      <ShortName>Transactions with Related Parties - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>2424402 - Disclosure - Lease Commitments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LeaseCommitmentsAdditionalInformationDetail</Role>
      <ShortName>Lease Commitments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>2424403 - Disclosure - Lease Commitments - Minimum Rental commitments under Noncancelable Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/LeaseCommitmentsMinimumRentalCommitmentsUnderNoncancelableLeasesDetail</Role>
      <ShortName>Lease Commitments - Minimum Rental commitments under Noncancelable Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>2425401 - Disclosure - Dividend Reinvestment Plan - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/DividendReinvestmentPlanAdditionalInformationDetail</Role>
      <ShortName>Dividend Reinvestment Plan - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>2426402 - Disclosure - Fair Value Measurements - Balances of Assets Measured at Fair Value on a Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FairValueMeasurementsBalancesOfAssetsMeasuredAtFairValueOnRecurringBasisDetail</Role>
      <ShortName>Fair Value Measurements - Balances of Assets Measured at Fair Value on a Recurring Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>2426403 - Disclosure - Fair Value Measurements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FairValueMeasurementsAdditionalInformationDetail</Role>
      <ShortName>Fair Value Measurements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>2426404 - Disclosure - Fair Value Measurements - Summary of Assets Measured at Fair Value on a Nonrecurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FairValueMeasurementsSummaryOfAssetsMeasuredAtFairValueOnNonrecurringBasisDetail</Role>
      <ShortName>Fair Value Measurements - Summary of Assets Measured at Fair Value on a Nonrecurring Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>2426405 - Disclosure - Fair Value Measurements - Quantitative Information about Level 3 Fair Value Measurements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FairValueMeasurementsQuantitativeInformationAboutLevel3FairValueMeasurementsDetail</Role>
      <ShortName>Fair Value Measurements - Quantitative Information about Level 3 Fair Value Measurements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>2426406 - Disclosure - Fair Value Measurements - Carrying Values and Estimated Fair Values of Company's Financial Instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/FairValueMeasurementsCarryingValuesAndEstimatedFairValuesOfCompanysFinancialInstrumentsDetail</Role>
      <ShortName>Fair Value Measurements - Carrying Values and Estimated Fair Values of Company's Financial Instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>2427402 - Disclosure - Regulatory Matters - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/RegulatoryMattersAdditionalInformationDetail</Role>
      <ShortName>Regulatory Matters - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>2427403 - Disclosure - Regulatory Matters - Comparison of Capital of Company and Bank with Minimum Regulatory Guidelines (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/RegulatoryMattersComparisonOfCapitalOfCompanyAndBankWithMinimumRegulatoryGuidelinesDetail</Role>
      <ShortName>Regulatory Matters - Comparison of Capital of Company and Bank with Minimum Regulatory Guidelines (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>2428402 - Disclosure - Accumulated Other Comprehensive Loss - Schedule of Changes in Component of Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AccumulatedOtherComprehensiveLossScheduleOfChangesInComponentOfAccumulatedOtherComprehensiveLossDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Schedule of Changes in Component of Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>2428403 - Disclosure - Accumulated Other Comprehensive Loss - Reclassifications from Accumulated Other Comprehensive Income (Loss) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/AccumulatedOtherComprehensiveLossReclassificationsFromAccumulatedOtherComprehensiveIncomeLossDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Reclassifications from Accumulated Other Comprehensive Income (Loss) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>2430402 - Disclosure - Stock Compensation Plans - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/StockCompensationPlansAdditionalInformationDetail</Role>
      <ShortName>Stock Compensation Plans - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>2430403 - Disclosure - Stock Compensation Plans - Summary of Restricted Stock Units (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/StockCompensationPlansSummaryOfRestrictedStockUnitsDetail</Role>
      <ShortName>Stock Compensation Plans - Summary of Restricted Stock Units (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>2432402 - Disclosure - Parent Company Only Financial Statements - Balance Sheets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ParentCompanyOnlyFinancialStatementsBalanceSheetsDetail</Role>
      <ShortName>Parent Company Only Financial Statements - Balance Sheets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>2432403 - Disclosure - Parent Company Only Financial Statements - Statements of Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ParentCompanyOnlyFinancialStatementsStatementsOfIncomeDetail</Role>
      <ShortName>Parent Company Only Financial Statements - Statements of Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="fxnc-20171231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>2432404 - Disclosure - Parent Company Only Financial Statements - Statements of Cash Flows (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.fbvirginia.com/role/ParentCompanyOnlyFinancialStatementsStatementsOfCashFlowsDetail</Role>
      <ShortName>Parent Company Only Financial Statements - Statements of Cash Flows (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>fxnc-20171231.xml</File>
    <File>fxnc-20171231.xsd</File>
    <File>fxnc-20171231_cal.xml</File>
    <File>fxnc-20171231_def.xml</File>
    <File>fxnc-20171231_lab.xml</File>
    <File>fxnc-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>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
