<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2019-01-31"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="saft-20200327.xsd" xlink:type="simple"/>
    <context id="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001172052</identifier>
        </entity>
        <period>
            <startDate>2019-05-01</startDate>
            <endDate>2019-05-01</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_USxv9-5JeUO7JFNWzkkb5Q_2_1">0001172052</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_--ZuQR5lj0CC-JKbD2vdhA_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_b5haANNL6EO8pJjAmv9Glg">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_tju5BGqS9UO8lnHPn2Qsag">2020-03-27</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_LEPH5NoTUEO8a4H211tliA">SAFETY INSURANCE GROUP, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_Do4TkJxp5keGgDcop-lxIw_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_wNnLTF0Mj0-CLeGzYnrusA_1_1">000-50070</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_BJaaeBffDUSId8BwyK2YCw_1_2">13-4181699</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_Z5uwCzAI8UC4MZgdRGjcaA">20 Custom House Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_3j28Qlr6F0CnDA5KMA7GGA">Boston</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_zcAnZNvLD0uV9NAsNFeu1w">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_2dVAMiYATEe3Qai2451AcQ">02110</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_Ib5Fezwwy0W_IIhwuePtbA">(617)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_-314dnBPzEWLU3MsNxehyw">951-0600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_1DPr8GhY_0ygxNZ1ARpegg">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_LWfVe3p960K01akJOUMcXg">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_jk12-actIEOPdg54pKjmzQ">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_FFSH5Y5rnkievhwtdM8qhA">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Narr_YfA0QeTNX0ubM9TE0KKUtg">false</dei:EntityEmergingGrowthCompany>
    <dei:Security12bTitle
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_iUUvNQ7EDkaL34fvCrD9zw_1_0">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_CEZ1ZtpWn0aPKYLxrMsNJg_1_1">SAFT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_5_1_2019_To_5_1_2019_pIT3sbeAWEOlHBOldVFoSw"
      id="Tc_wxqXIUOxS0ONJQKOMeHlyw_1_2">NASDAQ</dei:SecurityExchangeName>
</xbrl>
