<?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/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="exc-20250505.xsd" xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001109357</identifier>
        </entity>
        <period>
            <startDate>2025-05-05</startDate>
            <endDate>2025-05-05</endDate>
        </period>
    </context>
    <dei:EntityIncorporationStateCountryCode contextRef="c-1" id="f-22">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressAddressLine1 contextRef="c-1" id="f-23">10 South Dearborn Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="c-1" id="f-24">P.O. Box&#160;805379</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="c-1" id="f-25">Chicago</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="c-1" id="f-26">IL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="c-1" id="f-27">60680-5379</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="c-1" id="f-28">(800)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="c-1" id="f-29">483-3220</dei:LocalPhoneNumber>
    <dei:EntityEmergingGrowthCompany contextRef="c-1" id="f-30">false</dei:EntityEmergingGrowthCompany>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-31">0001109357</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="c-1" id="f-32">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="c-1" id="f-1">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="c-1" id="f-2">2025-05-05</dei:DocumentPeriodEndDate>
    <dei:EntityFileNumber contextRef="c-1" id="f-3">001-16169</dei:EntityFileNumber>
    <dei:EntityRegistrantName contextRef="c-1" id="f-4">EXELON CORPORATION</dei:EntityRegistrantName>
    <dei:EntityTaxIdentificationNumber contextRef="c-1" id="f-5">23-2990190</dei:EntityTaxIdentificationNumber>
    <dei:EntityIncorporationStateCountryCode contextRef="c-1" id="f-6">PA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressAddressLine1 contextRef="c-1" id="f-7">10 South Dearborn Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="c-1" id="f-8">P.O. Box&#160;805379</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="c-1" id="f-9">Chicago</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="c-1" id="f-10">IL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="c-1" id="f-11">60680-5379</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="c-1" id="f-12">(800)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="c-1" id="f-13">483-3220</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="c-1" id="f-14">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="c-1" id="f-15">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="c-1" id="f-16">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="c-1" id="f-17">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="c-1" id="f-18">Common Stock, without par value</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="c-1" id="f-19">EXC</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="c-1" id="f-20">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="c-1" id="f-21">false</dei:EntityEmergingGrowthCompany>
</xbrl>
