XML 68 R38.htm IDEA: XBRL DOCUMENT
v3.20.1

Loans and Allowance for Loan and Lease Losses (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2019
Accounts Notes Loans And Financing Receivable Gross Allowance And Net [Abstract] |
Type of Loan Portfolio Summarized by the Aggregate Risk Rating | The types of loans in Mid Penn’s portfolio, summarized by those rated as “pass” (net of deferred fees and costs of $1,081,000 as of December 31, 2019 and $647,000 as of December 31, 2018), and the loans classified as “special mention” and “substandard” within Mid Penn’s internal risk rating system as of December 31, 2019 and December 31, 2018, are as follows:
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
December 31, 2019 |  | Pass |  |  | Special Mention |  |  | Substandard |  |  | Total |
Commercial and industrial |  | $ | 326,573 |  |  | $ | 9,558 |  |  | $ | 3,016 |  |  | $ | 339,147 |
Commercial real estate |  |  | 913,001 |  |  |  | 2,426 |  |  |  | 13,711 |  |  |  | 929,138 |
Commercial real estate - construction |  |  | 181,650 |  |  |  | — |  |  |  | 40 |  |  |  | 181,690 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 235,252 |  |  |  | 55 |  |  |  | 1,417 |  |  |  | 236,724 |
Home equity |  |  | 68,224 |  |  |  | — |  |  |  | 47 |  |  |  | 68,271 |
Consumer |  |  | 7,786 |  |  |  | — |  |  |  | — |  |  |  | 7,786 |
|  | $ | 1,732,486 |  |  | $ | 12,039 |  |  | $ | 18,231 |  |  | $ | 1,762,756 |
Impaired Loans by Loan Portfolio Class | Impaired loans by loan portfolio class as of December 31, 2019 and 2018 are summarized as follows:
|  | December 31, 2019 |  |  | December 31, 2018 |
(Dollars in thousands) |  | Recorded Investment |  |  | Unpaid Principal Balance |  |  | Related Allowance |  |  | Recorded Investment |  |  | Unpaid Principal Balance |  |  | Related Allowance |
With no related allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 890 |  |  | $ | 890 |  |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 7,973 |  |  |  | 8,366 |  |  |  | — |  |  |  | 2,007 |  |  |  | 2,276 |  |  |  | — |
Commercial real estate - construction |  |  | 40 |  |  |  | 61 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 817 |  |  |  | 838 |  |  |  | — |  |  |  | 657 |  |  |  | 811 |  |  |  | — |
Home equity |  |  | 25 |  |  |  | 27 |  |  |  | — |  |  |  | 30 |  |  |  | 106 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: * |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 3 |  |  | $ | 68 |  |  | $ | — |  |  | $ | 28 |  |  | $ | 28 |  |  | $ | — |
Commercial real estate |  |  | 1,423 |  |  |  | 1,708 |  |  |  | — |  |  |  | 1,563 |  |  |  | 1,563 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 381 |  |  |  | 578 |  |  |  | — |  |  |  | 1,208 |  |  |  | 1,208 |  |  |  | — |
Home equity |  |  | 1 |  |  |  | 5 |  |  |  | — |  |  |  | 4 |  |  |  | 4 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | — |  |  | $ | — |  |  | $ | — |  |  | $ | 4,527 |  |  | $ | 4,635 |  |  | $ | 500 |
Commercial real estate |  |  | 338 |  |  |  | 380 |  |  |  | 166 |  |  |  | 721 |  |  |  | 721 |  |  |  | 204 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 367 |  |  |  | 370 |  |  |  | 38 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 893 |  |  | $ | 958 |  |  | $ | — |  |  | $ | 4,555 |  |  | $ | 4,663 |  |  | $ | 500 |
Commercial real estate |  |  | 9,734 |  |  |  | 10,454 |  |  |  | 166 |  |  |  | 4,291 |  |  |  | 4,560 |  |  |  | 204 |
Commercial real estate - construction |  |  | 40 |  |  |  | 61 |  |  |  | — |  |  |  | 367 |  |  |  | 370 |  |  |  | 38 |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,198 |  |  |  | 1,416 |  |  |  | — |  |  |  | 1,865 |  |  |  | 2,019 |  |  |  | — |
Home equity |  |  | 26 |  |  |  | 32 |  |  |  | — |  |  |  | 34 |  |  |  | 110 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Average Recorded Investment Of Impaired Loans And Related Interest Income By Loan Portfolio Class | The average recorded investment of impaired loans and related interest income recognized for the years ended December 31, 2019, 2018, and 2017 are summarized as follows:
|  | December 31, 2019 |  |  | December 31, 2018 |  |  | December 31, 2017 |
(Dollars in thousands) |  | Average Recorded Investment |  |  | Interest Income Recognized |  |  | Average Recorded Investment |  |  | Interest Income Recognized |  |  | Average Recorded Investment |  |  | Interest Income Recognized |
With no related allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 178 |  |  | $ | 3 |  |  | $ | — |  |  | $ | — |  |  | $ | 15 |  |  | $ | — |
Commercial real estate |  |  | 3,363 |  |  |  | 20 |  |  |  | 3,048 |  |  |  | 3 |  |  |  | 1,915 |  |  |  | 279 |
Commercial real estate - construction |  |  | 32 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 164 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 854 |  |  |  | 30 |  |  |  | 754 |  |  |  | 29 |  |  |  | 890 |  |  |  | 18 |
Home equity |  |  | 27 |  |  |  | — |  |  |  | 101 |  |  |  | — |  |  |  | 218 |  |  |  | 6 |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With no related allowance recorded and acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 18 |  |  | $ | — |  |  | $ | 23 |  |  | $ | — |  |  | $ | — |  |  | $ | — |
Commercial real estate |  |  | 1,597 |  |  |  | — |  |  |  | 1,414 |  |  |  | 23 |  |  |  | 651 |  |  |  | 110 |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 991 |  |  |  | — |  |  |  | 832 |  |  |  | — |  |  |  | 332 |  |  |  | — |
Home equity |  |  | 4 |  |  |  | — |  |  |  | 1 |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
With an allowance recorded: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 962 |  |  | $ | — |  |  | $ | 4,437 |  |  | $ | — |  |  | $ | 1,779 |  |  | $ | — |
Commercial real estate |  |  | 424 |  |  |  | — |  |  |  | 541 |  |  |  | — |  |  |  | 1,446 |  |  |  | — |
Commercial real estate - construction |  |  | 147 |  |  |  | — |  |  |  | 367 |  |  |  | — |  |  |  | 488 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  | $ | 1,158 |  |  | $ | 3 |  |  | $ | 4,460 |  |  | $ | — |  |  | $ | 1,794 |  |  | $ | — |
Commercial real estate |  |  | 5,384 |  |  |  | 20 |  |  |  | 5,003 |  |  |  | 26 |  |  |  | 4,012 |  |  |  | 389 |
Commercial real estate - construction |  |  | 179 |  |  |  | — |  |  |  | 367 |  |  |  | — |  |  |  | 652 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 1,845 |  |  |  | 30 |  |  |  | 1,586 |  |  |  | 29 |  |  |  | 1,222 |  |  |  | 18 |
Home equity |  |  | 31 |  |  |  | — |  |  |  | 102 |  |  |  | — |  |  |  | 218 |  |  |  | 6 |
Non-accrual Loans by Classes of the Loan Portfolio Including Loans Acquired With Credit Deterioration | Nonaccrual loans by loan portfolio class, including loans acquired with credit deterioration, as of December 31, 2019 and 2018 are summarized as follows:
(Dollars in thousands) |  |  |  |  |  |  |  |
|  | 2019 |  |  | 2018 |
Commercial and industrial |  | $ | 894 |  |  | $ | 4,555 |
Commercial real estate |  |  | 9,800 |  |  |  | 4,291 |
Commercial real estate - construction |  |  | 40 |  |  |  | 367 |
Residential mortgage |  |  | 711 |  |  |  | 1,502 |
Home equity |  |  | 26 |  |  |  | 34 |
|  | $ | 11,471 |  |  | $ | 10,749 |
Loan Portfolio Summarized by the Past Due Status | The classes of the loan portfolio summarized by the past due status as of December 31, 2019 and 2018 are summarized as follows:
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
December 31, 2019 |  | 30-59 Days Past Due |  |  | 60-89 Days Past Due |  |  | Greater than 90 Days |  |  | Total Past Due |  |  | Current |  |  | Total Loans |  |  | Loans Receivable > 90 Days and Accruing |
Commercial and industrial |  | $ | — |  |  | $ | 1,059 |  |  | $ | 890 |  |  | $ | 1,949 |  |  | $ | 337,195 |  |  | $ | 339,144 |  |  | $ | — |
Commercial real estate |  |  | 1,298 |  |  |  | 11 |  |  |  | — |  |  |  | 1,309 |  |  |  | 926,406 |  |  |  | 927,715 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | 7,819 |  |  |  | 7,819 |  |  |  | 173,871 |  |  |  | 181,690 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 145 |  |  |  | — |  |  |  | 326 |  |  |  | 471 |  |  |  | 235,872 |  |  |  | 236,343 |  |  |  | — |
Home equity |  |  | 34 |  |  |  | — |  |  |  | — |  |  |  | 34 |  |  |  | 68,236 |  |  |  | 68,270 |  |  |  | — |
Consumer |  |  | 5 |  |  |  | 3 |  |  |  | — |  |  |  | 8 |  |  |  | 7,778 |  |  |  | 7,786 |  |  |  | — |
Loans acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  |  | — |  |  |  | — |  |  |  | 3 |  |  |  | 3 |  |  |  | — |  |  |  | 3 |  |  |  | — |
Commercial real estate |  |  | 16 |  |  |  | 473 |  |  |  | 934 |  |  |  | 1,423 |  |  |  | — |  |  |  | 1,423 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 5 |  |  |  | — |  |  |  | 203 |  |  |  | 208 |  |  |  | 173 |  |  |  | 381 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 1 |  |  |  | 1 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total |  | $ | 1,503 |  |  | $ | 1,546 |  |  | $ | 10,175 |  |  | $ | 13,224 |  |  | $ | 1,749,532 |  |  | $ | 1,762,756 |  |  | $ | — |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
December 31, 2018 |  | 30-59 Days Past Due |  |  | 60-89 Days Past Due |  |  | Greater than 90 Days |  |  | Total Past Due |  |  | Current |  |  | Total Loans |  |  | Loans Receivable > 90 Days and Accruing |
Commercial and industrial |  | $ | 17 |  |  | $ | — |  |  | $ | 4,527 |  |  | $ | 4,544 |  |  | $ | 281,946 |  |  | $ | 286,490 |  |  | $ | — |
Commercial real estate |  |  | 685 |  |  |  | — |  |  |  | 458 |  |  |  | 1,143 |  |  |  | 858,663 |  |  |  | 859,806 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | 367 |  |  |  | 367 |  |  |  | 141,806 |  |  |  | 142,173 |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 53 |  |  |  | 53 |  |  |  | — |
Residential mortgage |  |  | 461 |  |  |  | — |  |  |  | 277 |  |  |  | 738 |  |  |  | 251,597 |  |  |  | 252,335 |  |  |  | — |
Home equity |  |  | 166 |  |  |  | 22 |  |  |  | 25 |  |  |  | 213 |  |  |  | 69,879 |  |  |  | 70,092 |  |  |  | — |
Consumer |  |  | 57 |  |  |  | 5 |  |  |  | — |  |  |  | 62 |  |  |  | 10,253 |  |  |  | 10,315 |  |  |  | — |
Loans acquired with credit deterioration: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial and industrial |  |  | 23 |  |  |  | 5 |  |  |  | — |  |  |  | 28 |  |  |  | — |  |  |  | 28 |  |  |  | — |
Commercial real estate |  |  | 29 |  |  |  | — |  |  |  | 1,534 |  |  |  | 1,563 |  |  |  | — |  |  |  | 1,563 |  |  |  | — |
Commercial real estate - construction |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Lease financing |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Residential mortgage |  |  | 19 |  |  |  | 57 |  |  |  | 913 |  |  |  | 989 |  |  |  | 219 |  |  |  | 1,208 |  |  |  | — |
Home equity |  |  | — |  |  |  | — |  |  |  | 4 |  |  |  | 4 |  |  |  | — |  |  |  | 4 |  |  |  | — |
Consumer |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Total |  | $ | 1,457 |  |  | $ | 89 |  |  | $ | 8,105 |  |  | $ | 9,651 |  |  | $ | 1,614,416 |  |  | $ | 1,624,067 |  |  | $ | — |
Allowance for Loan Losses and Recorded Investment in Financing Receivables | Activity in the allowance for loan and lease losses for the years ended December 31, 2019, 2018, and 2017, and the recorded investment in loans receivable as of December 31, 2019, 2018, and 2017 are as follows:
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dec. 31, 2019 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance |  | $ | 2,391 |  |  | $ | 4,703 |  |  | $ | 75 |  |  | $ | — |  |  | $ | 453 |  |  | $ | 528 |  |  | $ | 7 |  |  | $ | 240 |  |  | $ | 8,397 |
Charge-offs |  |  | (217 | ) |  |  | (60 | ) |  |  | (40 | ) |  |  | — |  |  |  | (29 | ) |  |  | (18 | ) |  |  | (64 | ) |  |  | — |  |  |  | (428 | )
Recoveries |  |  | 45 |  |  |  | 82 |  |  |  | — |  |  |  | — |  |  |  | 9 |  |  |  | 5 |  |  |  | 15 |  |  |  | — |  |  |  | 156 |
Provisions |  |  | 122 |  |  |  | 1,534 |  |  |  | 16 |  |  |  | — |  |  |  | (16 | ) |  |  | (73 | ) |  |  | 44 |  |  |  | (237 | ) |  |  | 1,390 |
Ending balance |  |  | 2,341 |  |  |  | 6,259 |  |  |  | 51 |  |  |  | — |  |  |  | 417 |  |  |  | 442 |  |  |  | 2 |  |  |  | 3 |  |  |  | 9,515 |
Ending balance: individually evaluated for impairment |  |  | — |  |  |  | 166 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 166 |
Ending balance: collectively evaluated for impairment |  | $ | 2,341 |  |  | $ | 6,093 |  |  | $ | 51 |  |  | $ | — |  |  | $ | 417 |  |  | $ | 442 |  |  | $ | 2 |  |  | $ | 3 |  |  | $ | 9,349 |
Loans receivable: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 339,147 |  |  | $ | 929,138 |  |  | $ | 181,690 |  |  | $ | — |  |  | $ | 236,724 |  |  | $ | 68,271 |  |  | $ | 7,786 |  |  | $ | — |  |  | $ | 1,762,756 |
Ending balance: individually evaluated for impairment |  |  | 890 |  |  |  | 8,311 |  |  |  | 40 |  |  |  | — |  |  |  | 817 |  |  |  | 25 |  |  |  | — |  |  |  | — |  |  |  | 10,083 |
Ending balance: acquired with credit deterioration |  |  | 3 |  |  |  | 1,423 |  |  |  | — |  |  |  | — |  |  |  | 381 |  |  |  | 1 |  |  |  | — |  |  |  | — |  |  |  | 1,808 |
Ending balance: collectively evaluated for impairment |  | $ | 338,254 |  |  | $ | 919,404 |  |  | $ | 181,650 |  |  | $ | — |  |  | $ | 235,526 |  |  | $ | 68,245 |  |  | $ | 7,786 |  |  | $ | — |  |  | $ | 1,750,865 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dec. 31, 2018 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance |  | $ | 1,795 |  |  | $ | 4,435 |  |  | $ | 178 |  |  | $ | — |  |  | $ | 428 |  |  | $ | 423 |  |  | $ | 3 |  |  | $ | 344 |  |  | $ | 7,606 |
Charge-offs |  |  | (142 | ) |  |  | (64 | ) |  |  | (40 | ) |  |  | — |  |  |  | (60 | ) |  |  | (185 | ) |  |  | (37 | ) |  |  | — |  |  |  | (528 | )
Recoveries |  |  | 1 |  |  |  | 808 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 1 |  |  |  | 9 |  |  |  | — |  |  |  | 819 |
Provisions |  |  | 737 |  |  |  | (476 | ) |  |  | (63 | ) |  |  | — |  |  |  | 85 |  |  |  | 289 |  |  |  | 32 |  |  |  | (104 | ) |  |  | 500 |
Ending balance |  |  | 2,391 |  |  |  | 4,703 |  |  |  | 75 |  |  |  | — |  |  |  | 453 |  |  |  | 528 |  |  |  | 7 |  |  |  | 240 |  |  |  | 8,397 |
Ending balance: individually evaluated for impairment |  |  | 500 |  |  |  | 204 |  |  |  | 38 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 742 |
Ending balance: collectively evaluated for impairment |  | $ | 1,891 |  |  | $ | 4,499 |  |  | $ | 37 |  |  | $ | — |  |  | $ | 453 |  |  | $ | 528 |  |  | $ | 7 |  |  | $ | 240 |  |  | $ | 7,655 |
Loans receivable: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 286,518 |  |  | $ | 861,369 |  |  | $ | 142,173 |  |  | $ | 53 |  |  | $ | 253,543 |  |  | $ | 70,096 |  |  | $ | 10,315 |  |  | $ | — |  |  | $ | 1,624,067 |
Ending balance: individually evaluated for impairment |  |  | 4,527 |  |  |  | 2,728 |  |  |  | 367 |  |  |  | — |  |  |  | 811 |  |  |  | 30 |  |  |  | — |  |  |  | — |  |  |  | 8,463 |
Ending balance: acquired with credit deterioration |  |  | 28 |  |  |  | 1,563 |  |  |  | — |  |  |  | — |  |  |  | 1,208 |  |  |  | 4 |  |  |  | — |  |  |  | — |  |  |  | 2,803 |
Ending balance: collectively evaluated for impairment |  | $ | 281,963 |  |  | $ | 857,078 |  |  | $ | 141,806 |  |  | $ | 53 |  |  | $ | 251,524 |  |  | $ | 70,062 |  |  | $ | 10,315 |  |  | $ | — |  |  | $ | 1,612,801 |
(Dollars in thousands) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Dec. 31, 2017 |  | Commercial and industrial |  |  | Commercial real estate |  |  | Commercial real estate - construction |  |  | Lease financing |  |  | Residential mortgage |  |  | Home equity |  |  | Consumer |  |  | Unallocated |  |  | Total |
Allowance for loan and lease losses: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning Balance |  | $ | 1,580 |  |  | $ | 4,323 |  |  | $ | 144 |  |  | $ | 1 |  |  | $ | 541 |  |  | $ | 379 |  |  | $ | 3 |  |  | $ | 212 |  |  | $ | 7,183 |
Charge-offs |  |  | (25 | ) |  |  | (322 | ) |  |  | — |  |  |  | — |  |  |  | (102 | ) |  |  | (20 | ) |  |  | (28 | ) |  |  | — |  |  |  | (497 | )
Recoveries |  |  | 26 |  |  |  | 553 |  |  |  | — |  |  |  | — |  |  |  | 4 |  |  |  | 5 |  |  |  | 7 |  |  |  | — |  |  |  | 595 |
Provisions |  |  | 214 |  |  |  | (119 | ) |  |  | 34 |  |  |  | (1 | ) |  |  | (15 | ) |  |  | 59 |  |  |  | 21 |  |  |  | 132 |  |  |  | 325 |
Ending balance |  |  | 1,795 |  |  |  | 4,435 |  |  |  | 178 |  |  |  | — |  |  |  | 428 |  |  |  | 423 |  |  |  | 3 |  |  |  | 344 |  |  |  | 7,606 |
Ending balance: individually evaluated for impairment |  |  | 136 |  |  |  | 293 |  |  |  | 100 |  |  |  | — |  |  |  | - |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 529 |
Ending balance: collectively evaluated for impairment |  | $ | 1,659 |  |  | $ | 4,142 |  |  | $ | 78 |  |  | $ | — |  |  | $ | 428 |  |  | $ | 423 |  |  | $ | 3 |  |  | $ | 344 |  |  | $ | 7,077 |
Loans receivable: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance |  | $ | 188,033 |  |  | $ | 515,012 |  |  | $ | 62,336 |  |  | $ | 229 |  |  | $ | 99,033 |  |  | $ | 41,893 |  |  | $ | 3,868 |  |  | $ | — |  |  | $ | 910,404 |
Ending balance: individually evaluated for impairment |  |  | 4,434 |  |  |  | 4,847 |  |  |  | 487 |  |  |  | — |  |  |  | 760 |  |  |  | 260 |  |  |  | — |  |  |  | — |  |  |  | 10,788 |
Ending balance: acquired with credit deterioration |  |  | — |  |  |  | 555 |  |  |  | — |  |  |  | — |  |  |  | 306 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 861 |
Ending balance: collectively evaluated for impairment |  | $ | 183,599 |  |  | $ | 509,610 |  |  | $ | 61,849 |  |  | $ | 229 |  |  | $ | 97,967 |  |  | $ | 41,633 |  |  | $ | 3,868 |  |  | $ | — |  |  | $ | 898,755 |
Troubled Debt Restructurings | The recorded investments in troubled debt restructured loans at December 31, 2019 and 2018 are as follows:
(Dollars in thousands) | Pre-Modification |  |  | Post-Modification |  |  |  |
December 31, 2019 | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial | $ | 3 |  |  | $ | 3 |  |  | $ | 3 |
Commercial real estate |  | 2,562 |  |  |  | 2,463 |  |  |  | 1,705 |
Commercial real estate - construction |  | 40 |  |  |  | 40 |  |  |  | 40 |
Residential mortgage |  | 677 |  |  |  | 675 |  |  |  | 490 |
| $ | 3,282 |  |  | $ | 3,181 |  |  | $ | 2,238 |
(Dollars in thousands) | Pre-Modification |  |  | Post-Modification |  |  |  |
December 31, 2018 | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial | $ | 4,110 |  |  | $ | 4,460 |  |  | $ | 4,302 |
Commercial real estate |  | 2,940 |  |  |  | 2,841 |  |  |  | 2,201 |
Residential mortgage |  | 677 |  |  |  | 675 |  |  |  | 516 |
Home equity |  | 14 |  |  |  | 14 |  |  |  | 1 |
| $ | 7,741 |  |  | $ | 7,990 |  |  | $ | 7,020 |
Schedule of Troubled Debt Restructurings Modified in the Period | The following table summarizes the loans whose terms have been modified resulting in troubled debt restructurings during the years ended December 31, 2019, 2018, and 2017.
(Dollars in thousands) |  |  |  | Pre-Modification |  |  | Post-Modification |  |  |  |
December 31, 2019 |  | Number of Contracts |  | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial |  | 1 |  | $ | 3 |  |  | $ | 3 |  |  | $ | 3 |
Commercial real estate - construction |  | 1 |  |  | 40 |  |  |  | 40 |  |  |  | 40 |
|  | 2 |  | $ | 43 |  |  | $ | 43 |  |  | $ | 43 |
(Dollars in thousands) |  |  |  | Pre-Modification |  |  | Post-Modification |  |  |  |
December 31, 2018 |  | Number of Contracts |  | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial real estate |  | 1 |  | $ | 270 |  |  | $ | 270 |  |  | $ | 266 |
|  | 1 |  | $ | 270 |  |  | $ | 270 |  |  | $ | 266 |
(Dollars in thousands) |  |  |  | Pre-Modification |  |  | Post-Modification |  |  |  |
December 31, 2017 |  | Number of Contracts |  | Outstanding Recorded Investment |  |  | Outstanding Recorded Investment |  |  | Recorded Investment |
Commercial and industrial |  | 1 |  | $ | 4,110 |  |  | $ | 4,460 |  |  | $ | 4,434 |
Commercial real estate |  | 9 |  |  | 3,212 |  |  |  | 3,150 |  |  |  | 3,140 |
|  | 10 |  | $ | 7,322 |  |  | $ | 7,610 |  |  | $ | 7,574 |
Schedule of Accretion of Purchased Impaired Loan | The following table provides activity for the accretable yield of purchased impaired loans for the years ended December 31, 2019 and 2018.
(Dollars in thousands) |  |
|  | For the year ended December 31, |
|  | 2019 |  |  | 2018 |
Accretable yield, beginning of period |  | $ | 309 |  |  | $ | 67 |
Acquisition of impaired loans |  |  | — |  |  |  | 430 |
Accretable yield amortized to interest income |  |  | (220 | ) |  |  | (188 | )
Accretable yield, end of period |  | $ | 89 |  |  | $ | 309 |

X
- Definition Accretable yield schedule related to purchased impaired loans. + References No definition available. + Details
Name: | mpb_AccretableYieldScheduleRelatedToPurchasedImpairedLoansTableTextBlock
Namespace Prefix: | mpb_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Average impaired financing receivables. + References No definition available. + Details
Name: | mpb_AverageImpairedFinancingReceivablesTableTextBlock
Namespace Prefix: | mpb_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of loans modified during the period and classified as troubled debt restructurings. + References No definition available. + Details
Name: | mpb_ScheduleOfTroubledDebtRestructuringsModifiedInCurrentPeriodTableTextBlock
Namespace Prefix: | mpb_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_AccountsNotesLoansAndFinancingReceivableGrossAllowanceAndNetAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of allowance for credit loss on financing receivable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 11B -URI http://asc.fasb.org/extlink&oid=118936363&loc=SL6953423-111524 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=119407570&loc=SL82919249-210447 + Details
Name: | us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of financing receivables by credit quality indicator. The credit quality indicator is a statistic about the credit quality of financing receivables. Examples include, but not limited to, consumer credit risk scores, credit-rating-agency ratings, an entity's internal credit risk grades, loan-to-value ratios, collateral, collection experience and other internal metrics. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=119407570&loc=SL82919230-210447 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 29 -URI http://asc.fasb.org/extlink&oid=118936363&loc=SL6953659-111524 + Details
Name: | us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of impaired financing receivables. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=118936363&loc=d3e5212-111524 + Details
Name: | us-gaap_ImpairedFinancingReceivablesTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of aging analysis for financing receivable. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 14 -URI http://asc.fasb.org/extlink&oid=119407570&loc=SL82919253-210447 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 7A -URI http://asc.fasb.org/extlink&oid=118936363&loc=SL6953401-111524 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 55 -Paragraph 80 -URI http://asc.fasb.org/extlink&oid=118955255&loc=SL82922355-210448 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=118936363&loc=d3e5111-111524 + Details
Name: | us-gaap_PastDueFinancingReceivablesTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of financing receivable on nonaccrual status. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=118936363&loc=d3e5111-111524 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 50 -Paragraph 16 -URI http://asc.fasb.org/extlink&oid=119407570&loc=SL82919258-210447 + Details
Name: | us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of financing receivable modified as troubled debt restructuring. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 33 -URI http://asc.fasb.org/extlink&oid=118936363&loc=SL6953676-111524 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 34 -URI http://asc.fasb.org/extlink&oid=118936363&loc=SL6953682-111524 + Details
Name: | us-gaap_TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration