XML 195 R87.htm IDEA: XBRL DOCUMENT
v3.25.1

Cash and cash equivalents - Additional Information (Details) - COP ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Cash and cash equivalents |  |
Restricted cash | $ 1,905,664 | $ 1,724,488
Return on cash and cash equivalents | 6.70% | 9.80%
Interconexion Electrica S.A. E.S.P. |  |
Cash and cash equivalents |  |
Restricted cash | $ 1,904,745 | $ 1,580,106
Cenit |  |
Cash and cash equivalents |  |
Restricted cash |  | 143,464
Other Companies |  |
Cash and cash equivalents |  |
Restricted cash | $ 919 | $ 918

X
- Definition The percentage of average return earned on cash and cash equivalents during the period. + References No definition available. + Details
Name: | ec_AverageRateOfReturnOnCashAndCashEquivalents
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ec_DisclosureOfCashAndCashEquivalentsLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_55&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_RestrictedCashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_InterconexinElctricaS.a.EspMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_CenitTransporteYLogsticaSASMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_OtherCompaniesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |