<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>336</ContextCount>
  <ElementCount>359</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>45</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00000001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00000002 - Statement - Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/BalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00000003 - Statement - Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/BalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00000004 - Statement - Consolidated Statements of Earnings (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/StatementsOfEarnings</Role>
      <ShortName>Consolidated Statements of Earnings (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00000005 - Statement - Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/StatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00000006 - Statement - Consolidated Statements of Changes in Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/StatementsOfChangesInShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00000007 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/StatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00000008 - Disclosure - 1. Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>1. Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>00000009 - Disclosure - 2. Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/InvestmentSecurities</Role>
      <ShortName>2. Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>00000010 - Disclosure - 3. Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/Loans</Role>
      <ShortName>3. Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>00000011 - Disclosure - 4. Net Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/NetEarningsPerShare</Role>
      <ShortName>4. Net Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>00000012 - Disclosure - 5. Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/Stock-basedCompensation</Role>
      <ShortName>5. Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>00000013 - Disclosure - 6. Fair Value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/FairValue</Role>
      <ShortName>6. Fair Value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>00000014 - Disclosure - 7. Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/Leases</Role>
      <ShortName>7. Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>00000015 - Disclosure - 8. Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/SubsequentEvents</Role>
      <ShortName>8. Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>00000016 - Disclosure - 2. Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/InvestmentSecuritiesTables</Role>
      <ShortName>2. Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/InvestmentSecurities</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>00000017 - Disclosure - 3. Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansTables</Role>
      <ShortName>3. Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/Loans</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>00000018 - Disclosure - 4. Net Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/NetEarningsPerShareTables</Role>
      <ShortName>4. Net Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/NetEarningsPerShare</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>00000019 - Disclosure - 6. Fair Value (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/FairValueTables</Role>
      <ShortName>6. Fair Value (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/FairValue</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>00000020 - Disclosure - 7. Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LeasesTables</Role>
      <ShortName>7. Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/Leases</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>00000021 - Disclosure - 2. Investment Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/InvestmentSecuritiesDetails</Role>
      <ShortName>2. Investment Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>00000022 - Disclosure - 2. Investment securities (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/InvestmentSecuritiesDetails1</Role>
      <ShortName>2. Investment securities (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>00000023 - Disclosure - 2. Investment securities (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/InvestmentSecuritiesDetails2</Role>
      <ShortName>2. Investment securities (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>00000024 - Disclosure - 2. Investment Securities (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/InvestmentSecuritiesDetailsNarrative</Role>
      <ShortName>2. Investment Securities (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/InvestmentSecuritiesTables</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>00000025 - Disclosure - 3. Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansDetails</Role>
      <ShortName>3. Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LoansTables</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>00000026 - Disclosure - 3. Loans (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansDetails1</Role>
      <ShortName>3. Loans (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LoansTables</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>00000027 - Disclosure - 3. Loans (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansDetails2</Role>
      <ShortName>3. Loans (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LoansTables</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>00000028 - Disclosure - 3. Loans (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansDetails3</Role>
      <ShortName>3. Loans (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LoansTables</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>00000029 - Disclosure - 3. Loans (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansDetails4</Role>
      <ShortName>3. Loans (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LoansTables</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>00000030 - Disclosure - 3. Loans (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansDetails5</Role>
      <ShortName>3. Loans (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LoansTables</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>00000031 - Disclosure - 3. Loans (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LoansDetailsNarrative</Role>
      <ShortName>3. Loans (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LoansTables</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>00000032 - Disclosure - 4. Net Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/NetEarningsPerShareDetails</Role>
      <ShortName>4. Net Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/NetEarningsPerShareTables</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>00000033 - Disclosure - 5. Stock-Based Compensation (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/Stock-basedCompensationDetailsNarrative</Role>
      <ShortName>5. Stock-Based Compensation (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/Stock-basedCompensation</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>00000034 - Disclosure - 6. Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/FairValueDetails</Role>
      <ShortName>6. Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/FairValueTables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>00000035 - Disclosure - 6. Fair Value (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/FairValueDetails1</Role>
      <ShortName>6. Fair Value (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/FairValueTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>00000036 - Disclosure - 6. Fair Value (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/FairValueDetails2</Role>
      <ShortName>6. Fair Value (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/FairValueTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>00000037 - Disclosure - 6. Fair Value (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/FairValueDetails3</Role>
      <ShortName>6. Fair Value (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/FairValueTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>00000038 - Disclosure - 7. Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LeasesDetails</Role>
      <ShortName>7. Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LeasesTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>00000039 - Disclosure - 7. Leases (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LeasesDetails1</Role>
      <ShortName>7. Leases (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LeasesTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="pebk-20200331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>00000040 - Disclosure - 7. Leases (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://peoplesbanknc.com/role/LeasesDetailsNarrative</Role>
      <ShortName>7. Leases (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://peoplesbanknc.com/role/LeasesTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>pebk-20200331.xml</File>
    <File>pebk-20200331.xsd</File>
    <File>pebk-20200331_cal.xml</File>
    <File>pebk-20200331_def.xml</File>
    <File>pebk-20200331_lab.xml</File>
    <File>pebk-20200331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
