<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xom="http://www.exxonmobil.com/20260701">
    <link:schemaRef xlink:href="xom-20260701.xsd" xlink:type="simple"/>
    <context id="duration_2026-07-01_to_2026-07-01">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000034088</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <context id="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000034088</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">us-gaap:CommonStockMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <context id="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2028Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000034088</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">xom:ZeroPointFiveTwoFourPercentNotesDue2028Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <context id="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2032Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000034088</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">xom:ZeroPointFiveTwoFourPercentNotesDue2032Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <context id="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-OnePointFourZeroEightPercentNotesDue2039Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000034088</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">xom:OnePointFourZeroEightPercentNotesDue2039Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName
      contextRef="duration_2026-07-01_to_2026-07-01"
      id="Hidden_dei_EntityRegistrantName">EXXON MOBIL CORP</dei:EntityRegistrantName>
    <dei:AmendmentFlag contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-388">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2026-07-01_to_2026-07-01"
      id="Hidden_dei_EntityCentralIndexKey">0000034088</dei:EntityCentralIndexKey>
    <dei:CurrentFiscalYearEndDate
      contextRef="duration_2026-07-01_to_2026-07-01"
      id="Hidden_dei_CurrentFiscalYearEndDate_duration_2026-07-01_to_2026-07-01">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-432">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-433">2026-07-01</dei:DocumentPeriodEndDate>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-434">NJ</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-435">001-02256</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-436">13-5409005</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-437">22777 Springwoods Village Parkway</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-438">Spring</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-439">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-440">77389-1425</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-441">(972)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-442">940-6000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-443">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-444">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-445">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-446">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember"
      id="ixv-447">Common Stock, without par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember"
      id="ixv-448">XOM</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_us-gaap-CommonStockMember"
      id="ixv-449">NYSE</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2028Member"
      id="ixv-450">0.524% Notes due 2028</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2028Member"
      id="ixv-451">XOM28</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2028Member"
      id="ixv-452">NYSE</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2032Member"
      id="ixv-453">0.835% Notes due 2032</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2032Member"
      id="ixv-454">XOM32</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-ZeroPointFiveTwoFourPercentNotesDue2032Member"
      id="ixv-455">NYSE</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-OnePointFourZeroEightPercentNotesDue2039Member"
      id="ixv-456">1.408% Notes due 2039</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-OnePointFourZeroEightPercentNotesDue2039Member"
      id="ixv-457">XOM39A</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="duration_2026-07-01_to_2026-07-01_us-gaap-StatementClassOfStockAxis_xom-OnePointFourZeroEightPercentNotesDue2039Member"
      id="ixv-458">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2026-07-01_to_2026-07-01" id="ixv-459">false</dei:EntityEmergingGrowthCompany>
</xbrl>
