<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  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="ehc-20230427.xsd" xlink:type="simple"/>
    <context id="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000785161</identifier>
        </entity>
        <period>
            <startDate>2023-04-27</startDate>
            <endDate>2023-04-27</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV80L2ZyYWc6M2JlNDQzM2NlYzVmNDgzMWEzNzdhOTA5ODcyM2U2YzEvdGFibGU6NWMxZDZjOTg1YjgyNDk4MmI3MTVhOTE5YjA0NzQzZWQvdGFibGVyYW5nZTo1YzFkNmM5ODViODI0OTgyYjcxNWE5MTliMDQ3NDNlZF8wLTEtMS0xLTMwMzM1NA_484be236-de8e-472d-b256-3750a8d03146">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV80L2ZyYWc6M2JlNDQzM2NlYzVmNDgzMWEzNzdhOTA5ODcyM2U2YzEvdGFibGU6NWMxZDZjOTg1YjgyNDk4MmI3MTVhOTE5YjA0NzQzZWQvdGFibGVyYW5nZTo1YzFkNmM5ODViODI0OTgyYjcxNWE5MTliMDQ3NDNlZF8xLTEtMS0xLTMwMzM1NA_b59a3e21-d485-4d9a-87d8-0cf1027fbe59">0000785161</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjgz_8ad67fa4-975c-4a43-9dd4-d4ca34a119c6">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY181NDk3NTU4MTUxODk_6a59f14c-c73b-4e22-8b81-c7dfabbed41d">2023-04-27</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjc3_89f7c9c4-a208-43c4-8cbc-f5da9f8af00b">Encompass Health Corporation</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjc0_b1658c90-714b-4043-9ee2-b4a03ba35c8c">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6ODYyYTgwOTNkYjBhNDdmMDg0YjIzNzZmMTE4MTcyMzEvdGFibGVyYW5nZTo4NjJhODA5M2RiMGE0N2YwODRiMjM3NmYxMTgxNzIzMV8wLTAtMS0xLTMwMzM1NA_9642e6e1-9155-4095-b6b2-8fd2c373f97e">001-10315</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6ODYyYTgwOTNkYjBhNDdmMDg0YjIzNzZmMTE4MTcyMzEvdGFibGVyYW5nZTo4NjJhODA5M2RiMGE0N2YwODRiMjM3NmYxMTgxNzIzMV8wLTEtMS0xLTMwMzM1NA_2799790f-bd85-482c-928e-392437981241">63-0860407</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjc4_e64df905-6ffe-4325-8fe4-e009534690b4">9001 Liberty Parkway</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjc1_7650f5a9-c92f-4031-8fad-9332ea602d90">Birmingham</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjc5_7a37123b-9dbd-4477-a913-21b92e307d98">AL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjc2_66b34f84-548e-4b92-928a-40d5c4e7c707">35242</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjgw_13c11296-623a-429a-986b-75593d0c54ec">205</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjgx_5889697b-9771-4a36-9b5f-03657a22ea3c">967-7116</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6NjE4ZTU5MDg0ZTIwNGIwMzkwMjJmNGJhNmJmM2JjNjYvdGFibGVyYW5nZTo2MThlNTkwODRlMjA0YjAzOTAyMmY0YmE2YmYzYmM2Nl8wLTAtMS0xLTMwMzM1NA_6e8cd966-8169-4b8b-aaa3-dcb9cba24180">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6NjE4ZTU5MDg0ZTIwNGIwMzkwMjJmNGJhNmJmM2JjNjYvdGFibGVyYW5nZTo2MThlNTkwODRlMjA0YjAzOTAyMmY0YmE2YmYzYmM2Nl8yLTAtMS0xLTMwMzM1NA_9db8bf23-eff7-42fa-b6b0-b501687c5b5e">false</dei:SolicitingMaterial>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6NjE4ZTU5MDg0ZTIwNGIwMzkwMjJmNGJhNmJmM2JjNjYvdGFibGVyYW5nZTo2MThlNTkwODRlMjA0YjAzOTAyMmY0YmE2YmYzYmM2Nl80LTAtMS0xLTMwMzM1NA_211739c5-28a5-46a8-b142-17184bac1cbf">false</dei:PreCommencementIssuerTenderOffer>
    <dei:PreCommencementTenderOffer
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6NjE4ZTU5MDg0ZTIwNGIwMzkwMjJmNGJhNmJmM2JjNjYvdGFibGVyYW5nZTo2MThlNTkwODRlMjA0YjAzOTAyMmY0YmE2YmYzYmM2Nl82LTAtMS0xLTMwMzM1NA_311825e5-b446-48c2-ae83-a5b990210db6">false</dei:PreCommencementTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGV4dHJlZ2lvbjo4N2E0ZjkzM2Q4ZDc0MzhmODA4MmMxYjMzZjUyM2IzY18xMjgy_db284793-cf07-4b52-b10a-973959c64194">false</dei:EntityEmergingGrowthCompany>
    <dei:Security12bTitle
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6ZjQ4YTk0YTAzZmIwNDFiNjhkYWQ2NjhmNDkxM2NjMWIvdGFibGVyYW5nZTpmNDhhOTRhMDNmYjA0MWI2OGRhZDY2OGY0OTEzY2MxYl8xLTAtMS0xLTMwMzM1NA_579ab6f3-c4f7-4cf0-9e04-e1932ff16ba0">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6ZjQ4YTk0YTAzZmIwNDFiNjhkYWQ2NjhmNDkxM2NjMWIvdGFibGVyYW5nZTpmNDhhOTRhMDNmYjA0MWI2OGRhZDY2OGY0OTEzY2MxYl8xLTEtMS0xLTMwMzM1NA_f51b46e2-3bd1-46f2-8dd2-76ae41a8fa66">EHC</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="i91db4d932c3c4dc2aa74daa2f09fd685_D20230427-20230427"
      id="id3VybDovL2RvY3MudjEvZG9jOmYwZmVlMDk2OGEzYjRjNDE4M2VmY2JiYWYwNGM1NmVlL3NlYzpmMGZlZTA5NjhhM2I0YzQxODNlZmNiYmFmMDRjNTZlZV8xL2ZyYWc6ODdhNGY5MzNkOGQ3NDM4ZjgwODJjMWIzM2Y1MjNiM2MvdGFibGU6ZjQ4YTk0YTAzZmIwNDFiNjhkYWQ2NjhmNDkxM2NjMWIvdGFibGVyYW5nZTpmNDhhOTRhMDNmYjA0MWI2OGRhZDY2OGY0OTEzY2MxYl8xLTItMS0xLTMwMzM1NA_1323adf5-c520-4f56-bb50-118ee027764c">NYSE</dei:SecurityExchangeName>
</xbrl>
