<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="kala-20221128.xsd" xlink:type="simple"/>
    <context id="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001479419</identifier>
        </entity>
        <period>
            <startDate>2022-11-28</startDate>
            <endDate>2022-11-28</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_-_7DobbUoEmn8ZwOxLFa-g_2_1">0001479419</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_F_kFR2D7S0mm5MaETgSlXg_3_1">false</dei:AmendmentFlag>
    <dei:CurrentFiscalYearEndDate
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_vanfxy0IXUKmcleYQouJkQ_4_1">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_5svtouBvBUuYGdqbTf5bDw">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_g7Lt31ExhkGxq-Wa6W_eBQ">2022-11-28</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_lNKkU2AvWkOFn-HfWGZa1g">Kala Pharmaceuticals,&#160;Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_gdMe-5tFdUenoBsO1rApow_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_lVsMhirSiUyOX9kgNmtmVA_1_1">001-38150</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_fqE82FBbzUGDc5IgGk48nA_1_2">27-0604595</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_ZJeGpiuWnECHVs6aIAf6WQ">1167 Massachusetts Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_ysqjPEliRkexOVf_ogqgDQ">Arlington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_nMQlOKQFY0G0XUqU_XCnCQ">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_rbvYlXWl3kq55-ihXhS-bg">02476</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_qbTEQi9m-UWHRr9J9gYTjQ">781</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_G4ZmNTlH_kmcb5Ujs7t7RQ">996-5252</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_i8LQqg8SyUqLKVvZ1jdKjg_0_0">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_VfhWcyd0lECl545ZBpXDhA_2_0">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_zvBQZjlHa0GWShzoKejZLw_4_0">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_W7kCnHHOs02CiqiNaWbdYg_6_0">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_R2RkPiMgyEiTpQVP8HYXVA_2_0">Common Stock, $0.001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_oekvl0qkhESRRKq6_YtqBw_2_2">KALA</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Tc_7wXxUTTrJUmDGQQR2o0Bxw_2_4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_9SdPW_2gCkCG2DAfsilGcQ">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod
      contextRef="Duration_11_28_2022_To_11_28_2022_68FVGcBjAECaWlB1V4EGHg"
      id="Narr_hLNg-_ef5UW9hXMjRY0G6g">true</dei:EntityExTransitionPeriod>
</xbrl>
