<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="pfis-20260430.xsd" xlink:type="simple"/>
    <context id="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001056943</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Tc_XbdGgnnqUk-Y65Wiu1P0EQ_2_1">0001056943</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Tc_llgotqF5q0ey4F6RHpzvAg_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_cl50KX9Y00mHWarskUO9JQ">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_op7YOUNagUiHGvGbkxMnGA">2026-04-30</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_rQnmi9dcsk265g3roQI5ng">PEOPLES FINANCIAL SERVICES CORP.</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_FL1p_JJvkU-zTbnsGpuNiA">001-36388</dei:EntityFileNumber>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Tc_qkIKzj0oQ0ag63MDz2yyRA_1_0">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Tc_BrpDj-Is5U2Z5krQDuvhNg_1_1">23-2391852</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_Eg60Cniq3Emvaibrn-JB9g">30 E D Preate Drive</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_n8bBSlsih02PiFYwZ5Yo2g">Moosic</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_bIeunsqP7k697vBOc4lr5g">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_NiwVi6jUU0Gx_BCqxiHahQ">18507</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_NL2U9_91XUCLHKBoPTjgGw">570</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_v7KXX2agdE2NvRe6XRGEeQ">346-7741</dei:LocalPhoneNumber>
    <dei:Security12bTitle
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Tc_ardYB-OVV0OuM8sfYXuw7A_2_0">Common stock, $2.00 par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Tc_yMHw6F7ApkOyTerIhPLQQQ_2_2">PFIS</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Tc_n-xyaLOKQEaX2FHBobpAQQ_2_4">NASDAQ</dei:SecurityExchangeName>
    <dei:WrittenCommunications
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_ZlzA3A9c4U6Lc8ClsKAFiA">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_WrE53W0v2kKh15eWk6oe1Q">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_pvnu74gqYEyHIaven7k3iA">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_fa4uN6yIxUS_VfbafKSHwQ">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_4_30_2026_To_4_30_2026_ui2wTEaDckeTpoq_WAD9AQ"
      id="Narr_Lk7MeVK3J0u13-A5PERjWw">false</dei:EntityEmergingGrowthCompany>
</xbrl>
