{
  "cik": 879635,
  "cik_padded": "0000879635",
  "entityName": "MID PENN BANCORP INC",
  "fiscal_years": [
    {
      "accn": "0000879635-26-000026",
      "filed": "2026-03-12",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2250000.0,
        "capex": 8234000.0,
        "dividends_paid": 18160000.0,
        "eps_diluted": 2.55,
        "free_cash_flow": 71801000.0,
        "net_income": 56248000.0,
        "operating_cash_flow": 80035000.0,
        "revenue": 323770000.0,
        "stockholders_equity": 814058000.0,
        "total_assets": 6133896000.0,
        "total_liabilities": 5319838000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 6.534961882322881,
        "net_margin": 0.17372826389103377,
        "payout_ratio": 0.32285592376617833,
        "revenue_growth_yoy": 0.12975996482694369,
        "roa_avg2y": 0.009693893026628908,
        "roa_period_end": 0.00917002831479373,
        "roe_avg2y": 0.07657602465767598,
        "roe_period_end": 0.06909581381179228
      }
    },
    {
      "accn": "0000879635-26-000026",
      "filed": "2026-03-12",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 323000.0,
        "capex": 6916000.0,
        "dividends_paid": 13822000.0,
        "eps_diluted": 2.9,
        "free_cash_flow": 44472000.0,
        "net_income": 49437000.0,
        "operating_cash_flow": 51388000.0,
        "revenue": 286583000.0,
        "stockholders_equity": 655018000.0,
        "total_assets": 5470936000.0,
        "total_liabilities": 4815918000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 7.352344515723232,
        "net_margin": 0.1725049985519029,
        "payout_ratio": 0.27958816271213865,
        "revenue_growth_yoy": 0.21259292795518303,
        "roa_avg2y": 0.009187557983253247,
        "roa_period_end": 0.009036296531343083,
        "roe_avg2y": 0.08257611694984332,
        "roe_period_end": 0.07547426177601227
      }
    },
    {
      "accn": "0000879635-26-000026",
      "filed": "2026-03-12",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 4876000.0,
        "capex": 2770000.0,
        "dividends_paid": 12981000.0,
        "eps_diluted": 2.29,
        "free_cash_flow": 49571000.0,
        "net_income": 37397000.0,
        "operating_cash_flow": 52341000.0,
        "revenue": 236339000.0,
        "stockholders_equity": 542350000.0,
        "total_assets": 5290792000.0,
        "total_liabilities": 4748442000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 8.755309302111183,
        "net_margin": 0.15823456983400963,
        "payout_ratio": 0.34711340481856834,
        "revenue_growth_yoy": 0.42716787439613524,
        "roa_avg2y": 0.007640815279097037,
        "roa_period_end": 0.007068317938032718,
        "roe_avg2y": 0.0709318326443479,
        "roe_period_end": 0.0689536277311699
      }
    },
    {
      "accn": "0000879635-26-000026",
      "filed": "2026-03-12",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2957000.0,
        "capex": 4249000.0,
        "dividends_paid": 12735000.0,
        "eps_diluted": 3.44,
        "free_cash_flow": 55742000.0,
        "net_income": 54806000.0,
        "operating_cash_flow": 59991000.0,
        "revenue": 165600000.0,
        "stockholders_equity": 512099000.0,
        "total_assets": 4497954000.0,
        "total_liabilities": 3985855000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 7.783368059691583,
        "net_margin": 0.3309541062801932,
        "payout_ratio": 0.23236506951793598,
        "revenue_growth_yoy": 0.34282609753328686,
        "roa_avg2y": 0.011930714951456776,
        "roa_period_end": 0.012184651065795693,
        "roe_avg2y": 0.10937411130790531,
        "roe_period_end": 0.1070222749897969
      }
    },
    {
      "accn": "0000879635-25-000030",
      "filed": "2025-03-13",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 128000.0,
        "capex": 3497000.0,
        "dividends_paid": 8872000.0,
        "eps_diluted": 2.71,
        "free_cash_flow": 62402000.0,
        "net_income": 29319000.0,
        "operating_cash_flow": 65899000.0,
        "revenue": 123322000.0,
        "stockholders_equity": 490076000.0,
        "total_assets": 4689425000.0,
        "total_liabilities": 4199349000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 8.568770966135865,
        "net_margin": 0.2377434683187104,
        "payout_ratio": 0.30260240799481564,
        "revenue_growth_yoy": 0.14255802103117618,
        "roa_avg2y": 0.0076268412055450485,
        "roa_period_end": 0.006252152449394115,
        "roe_avg2y": 0.0786280914605693,
        "roe_period_end": 0.05982541483361764
      }
    },
    {
      "accn": "0001564590-22-010421",
      "filed": "2024-03-28",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 1795000.0,
        "capex": 3685000.0,
        "dividends_paid": 6504000.0,
        "eps_diluted": 3.1,
        "free_cash_flow": 10384000.0,
        "net_income": 26209000.0,
        "operating_cash_flow": 14069000.0,
        "revenue": 107935000.0,
        "stockholders_equity": 255688000.0,
        "total_assets": 2998948000.0,
        "total_liabilities": 2743260000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 10.72893526485404,
        "net_margin": 0.24282206883772642,
        "payout_ratio": 0.24815902934106604,
        "revenue_growth_yoy": 0.1324387275474232,
        "roa_avg2y": 0.010022326434770272,
        "roa_period_end": 0.00873939794888074,
        "roe_avg2y": 0.1062034759564148,
        "roe_period_end": 0.1025038327962204
      }
    },
    {
      "accn": "0001564590-22-010421",
      "filed": "2023-03-16",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 3885000.0,
        "dividends_paid": 6688000.0,
        "eps_diluted": 2.09,
        "free_cash_flow": 3946000.0,
        "net_income": 17701000.0,
        "operating_cash_flow": 7831000.0,
        "revenue": 95312000.0,
        "stockholders_equity": 237874000.0,
        "total_assets": 2231175000.0,
        "total_liabilities": 1993301000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 8.379650571310862,
        "net_margin": 0.18571638408594932,
        "payout_ratio": 0.3778317609174623,
        "revenue_growth_yoy": 0.3882949281906371,
        "roa_avg2y": 0.008215529908873106,
        "roa_period_end": 0.00793348796037962,
        "roe_avg2y": 0.07672751783163813,
        "roe_period_end": 0.07441334488006256
      }
    },
    {
      "accn": "0001564590-22-010421",
      "filed": "2022-03-15",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 8958000.0,
        "dividends_paid": 4513000.0,
        "eps_diluted": 1.48,
        "free_cash_flow": 2025000.0,
        "net_income": 10596000.0,
        "operating_cash_flow": 10983000.0,
        "revenue": 68654000.0,
        "stockholders_equity": 223525000.0,
        "total_assets": 2077981000.0,
        "total_liabilities": 1854772000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 8.297827983447041,
        "net_margin": 0.15433914994028025,
        "payout_ratio": 0.42591543978859947,
        "revenue_growth_yoy": 0.5641574774446368,
        "roa_avg2y": 0.006523957658308026,
        "roa_period_end": 0.005099180406365602,
        "roe_avg2y": 0.07082437946788138,
        "roe_period_end": 0.047404093501845435
      }
    },
    {
      "accn": "0001564590-21-013134",
      "filed": "2021-03-15",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 6879000.0,
        "dividends_paid": 2204000.0,
        "eps_diluted": 1.67,
        "free_cash_flow": 5016000.0,
        "net_income": 7089000.0,
        "operating_cash_flow": 11895000.0,
        "revenue": 43892000.0,
        "stockholders_equity": 75694000.0,
        "total_assets": 1170354000.0,
        "total_liabilities": 1094651000.0
      },
      "period_end": "2017-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 14.461529315401485,
        "net_margin": 0.16151007017224095,
        "payout_ratio": 0.3109042178022288,
        "revenue_growth_yoy": 0.09151497065552572,
        "roa_avg2y": 0.006435906712490008,
        "roa_period_end": 0.006057141685336232,
        "roe_avg2y": 0.0970026203980542,
        "roe_period_end": 0.09365339392818454
      }
    },
    {
      "accn": "0001564590-20-010804",
      "filed": "2020-03-13",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "dividends_paid": "USD",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 775000.0,
        "dividends_paid": 2452000.0,
        "free_cash_flow": 21073000.0,
        "net_income": 7804000.0,
        "operating_cash_flow": 21848000.0,
        "revenue": 40212000.0,
        "stockholders_equity": 70467000.0,
        "total_assets": 1032599000.0,
        "total_liabilities": 962132000.0
      },
      "period_end": "2016-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "payout_ratio": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 13.653653483190713,
        "net_margin": 0.194071421466229,
        "payout_ratio": 0.3141978472578165,
        "roa_period_end": 0.007557628856894109,
        "roe_period_end": 0.110746874423489
      }
    },
    {
      "accn": "0000879635-16-000055",
      "filed": "2016-03-17",
      "fiscal_year": 2015,
      "form": "10-K",
      "fundamental_units": {
        "eps_diluted": "USD/shares"
      },
      "fundamentals": {
        "eps_diluted": 1.47
      },
      "period_end": "2015-12-31",
      "ratios": {}
    },
    {
      "accn": "0001193125-12-131740",
      "filed": "2012-03-26",
      "fiscal_year": 2011,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0
      },
      "period_end": "2011-12-31",
      "ratios": {}
    },
    {
      "accn": "0001193125-12-131740",
      "filed": "2012-03-26",
      "fiscal_year": 2010,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0
      },
      "period_end": "2010-12-31",
      "ratios": {}
    },
    {
      "accn": "0001193125-12-131740",
      "filed": "2012-03-26",
      "fiscal_year": 2009,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0
      },
      "period_end": "2009-12-31",
      "ratios": {}
    }
  ],
  "latest_filing": {
    "accn": "0000879635-26-000026",
    "filed": "2026-03-12",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "6022",
  "sic_description": "State Commercial Banks",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0000879635.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0000879635.json"
  },
  "ticker": "MPB"
}
