<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="saft-20260609.xsd" xlink:type="simple"/>
    <context id="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001172052</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_hkbvCe6K7024f3guKETUJA_2_1">0001172052</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_8fTKVzjAi0uDLtHODxXbGQ_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_9YDSivgMcku0XK4DMnbWpA">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_pYuQT-VLd0qe7L_ZJsX1TQ">2026-06-09</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_OSwvpRedWU-65LtXM0Dr4w">SAFETY INSURANCE GROUP, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_Q-nk_7BR3kWeY3Jgs6N9-w_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_aPJnMdeOdk6c1-x2xB3ZSQ_1_1">000-50070</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_QhokCeatRkKQmwXRZOnN0Q_1_2">13-4181699</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_zc0zAhUJl0qL3cXsIlJ1JA">20 Custom House Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_GsDFd3QgN0SLClYE6PrE_A">Boston</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_ojrthIvVikiiVN07-NR38A">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_EfS7KZDzzkirUTm_JeN_XQ">02110</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_9T51uA8qd0uwulJ6SXUHfA">(617)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_lstxsF_WskeyUwjU8_OG0g">951-0600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_FcT0kJ-16kWuudNSEo7TrQ">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_hP2Q7gDptEuyhl63tDbBAQ">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_VQUfS_XpQUuJ0UUDufQkAQ">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_nAqw-7nTCUODOWGVxal4Kw">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_mCuE9wWEW0eEgDu6YSvRww_1_0">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_j5AnC6fsH0-KplOjnvI9SQ_1_1">SAFT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Tc_ZcMwLAnUI0WKbLAX-fqptw_1_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_6_9_2026_To_6_9_2026_CCl7UVXAnEC2wWpd7xQGaw"
      id="Narr_MQhYYT0EAEqyFRYVsxGJOg">false</dei:EntityEmergingGrowthCompany>
</xbrl>
